How to remove submit button from a dialog opened for a web-item ?

Sanjeev Pande August 6, 2014

The dialog opened for the web-item has a submit button and a cancel link in it.
I don't want the submit button to be present in the dialog.

How to do that?

The api provided by connect i.e.

AP.require('dialog', function(dialog){

var submitButton = dialog.getButton("submit");

submitButton.disable();

});

has methods only to enable/disable it.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
seb
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2014

You can create a dialog without a chrome which will allow you to create your own buttons.

https://developer.atlassian.com/static/connect/docs/javascript/module-Dialog.html

TAGS
AUG Leaders

Atlassian Community Events