Hide Insert & Insert & Stay Buttons on Scoped custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:56 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 09:50 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 09:53 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 10:04 PM
did you check the point mentioned by me regarding the UI action name?
also share the screenshots.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 10:10 PM
Save and Submit buttons went missing after adding the UI Actions