Hi,
Can i remove or disable the cancel button from a dialog ?
Hi,
Can i remove or disable the cancel button from a dialog ?
Yes you can. I would just hide it.
You can do both(hide and disable) the cancel button by using the following code.You need to write the code in Dialog method as following-
Object dialog()
{
FormBuildCommandButtonControl cancelButton;
;
dialog = super();
//Add dialog fields
cancelButton = dialog.formBuildDesign().control(‘CancelButton’);
//Disable the Cancel button
cancelButton.enabled(false);
//Hide the Cancel button
cancelButton.visible(false);
return dialog;
}