I want to remove "Insert and Stay" button from context menu of a form how can i achieve that?

Abhilash Janga1
ServiceNow Employee
ServiceNow Employee

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

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I was able to find it in UI Actions

Just update the condition in the OOB one

find_real_file.png

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

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

View solution in original post

3 REPLIES 3

Chetan Mahajan
Kilo Sage
Kilo Sage

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

How to hide/remove insert / insert and stay option

Aman Kumar S
Kilo Patron

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 🙂

 

Best Regards
Aman Kumar

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I was able to find it in UI Actions

Just update the condition in the OOB one

find_real_file.png

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

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