Hide the X button on a dialog window

Maria DeLaCruz
Tera Guru

Hello,

I have created a UI page that is rendered in a catalog client script.   I would like to know if it's possible to hide the x on the upper-right corner.

find_real_file.png

Basically, we are restricting the catalog item, so we do not want certain people to be able to request it.  

When the OK button is clicked on this pop-up, user is re-directed to the home page.   When the x button on the upper-right is clicked, the pop-up window closes, and the screen stays on the catalog item, and the user is still able to submit it.  

Here's my catalog client script:

find_real_file.png

Here's my UI Page:

find_real_file.png

Any help would be appreciated.

Thanks,

Maria

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee
4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Maria,



Please refer below thread .


Remove the Close X on Glide Dialog window / UI Page


Rats, this time I was a little too slow.


Thanks, Pradeep!


Chuck Tomasi
Tera Patron

Hi Maria,



Yes, when you set up the dialog window, use this right before your dialog.render()



dialog.removeCloseDecoration();