- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 01:40 AM
I want to remove "Insert and Stay" button from context menu of a form how can i achieve that?.
As the action name starts with "sysverb" & also it is not available for the table from which i want to remove it when i searched in UI actions list. But on form i can see "Insert and Stay" in context menu.
Please if any one can help
Solved! Go to Solution.
- Labels:
-
Walk-Up Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 01:48 AM
Hi,
I was able to find it in UI Actions
Just update the condition in the OOB one
isAdvancedUI() && current.canCreate() && (!current.instanceOf('task') || gs.getProperty('glide.ui.task.insert') == 'true') && (!current.instanceOf('sys_db_object')) && current.getTableName() !='your tableName'
OR another way
you can visit the UI action; change the table to your Table; Do Insert and Stay and then inactivate that UI action
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 01:46 AM
Hi Abhilash,
it's OOB, Insert and Insert & Stay are context menu options, not buttons, so we cant remove it, but you can hide it refer to this thread hide the 'Insert' and 'Insert and Stay' buttons

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 01:47 AM
Hey,
Insert and stay UI action you can find on the UI action application module and search in name
https://your_instance_name.service-now.com/sys_ui_action_list.do?sysparm_query=nameSTARTSWITHinsert%5Ename%3DInsert%20and%20Stay%5EtableSTARTSWITHglobal&sysparm_view=
It is should be on global table, you can add in condition for tables where you don't want to see them or add specific roles for whom you want to hide it, if you want to hide for all, you can add "nobody" role in that section .
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 01:48 AM
Hi,
I was able to find it in UI Actions
Just update the condition in the OOB one
isAdvancedUI() && current.canCreate() && (!current.instanceOf('task') || gs.getProperty('glide.ui.task.insert') == 'true') && (!current.instanceOf('sys_db_object')) && current.getTableName() !='your tableName'
OR another way
you can visit the UI action; change the table to your Table; Do Insert and Stay and then inactivate that UI action
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader