0

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.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

0

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.

Travis
  • 10,444
  • 2
  • 28
  • 48