The CreatorCon Call for Content is officially open! Get started here.

How to hide/remove insert / insert and stay option from record

pradeepgupta
Giga Expert

How to hide/remove insert / insert and stay option from record

1 ACCEPTED SOLUTION

Hello,



I am sorry for not making myself clear. The value which needs to be the same as the one you want to override is 'Action name', which for Insert is 'sysverb_insert' and 'sysverb_insert_and_stay' for Insert and Stay. This way, with a condition of 'false' should be able to hide them.


Also note that 'Active' needs to be True.


View solution in original post

7 REPLIES 7

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Pradeep,



You can have thecondition in the UI Action as current.getTableName() != 'table name';


Hi Pradeep,



Thanks for your quick reply.


I have created customize table for which wanted to hide insert / insert and stay option which comes OOB, UI action of same is not available as this comes OOB.


filip11
Giga Contributor

Hello Pradeep,



The answer from Pradeep is working, but instead of modifying system content I would rather suggest creating a new UI action with the same system name (which effectively overrides the built-in one) with the condition 'false'.



This approach would be the most flexible and non-destructive, especially while developing an application.


Hi Filip,



Thanks for your reply.



I have created new UI action for the customize table with the same name (Insert / Insert and Stay), with this instread of overriding built-in there were two option of each (Insert / Insert and Stay) were avaialble. When I made active as false than also the buil-in option is avaialble.



Any other alternative,