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

217 views Asked by At

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

There are 1 answers

0
Travis On

You can turn the chrome of the dialog off when it's created via dialog options. You would need to add your own buttons in once this has been done.