Hide Insert & Insert & Stay Buttons on Scoped custom table

Khanna Ji
Tera Guru

Hi Team,

 

I have created a table in custom scoped app which started showing Insert and Insert & Stay buttons. To hide them, I have created two new buttons by mimicking the Global buttons since I cannot insert them due to scope limitation. When I disable the newly created buttons, Save/Submit buttons were missing on new record. When I enable them, Save and Submit buttons started visible again.

 

How can I disable/hide the Insert & Insert and Stay buttons without impacting the Save/Submit button during record creation?

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@Khanna Ji 

did you create new UI action on your custom table with same action name i.e. for Insert it is 'sysverb_insert' and 'sysverb_insert_and_stay' for Insert and Stay.

Ensure it is active

in the condition field add false

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes, created exactly with the same name. I had added gs.hasRole('admin') so that its visible to admins but Save/Submit buttons were missing on new record

@Khanna Ji 

did you check the point mentioned by me regarding the UI action name?

also share the screenshots.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

 

KhannaJi_0-1686200923164.png

 

KhannaJi_1-1686200979444.png

 

 

 

Save and Submit buttons went missing after adding the UI Actions

 

KhannaJi_2-1686201021080.png