Conditionaly hiding Insert and Insert and stay UI actions

Adam_P
Kilo Contributor

Hi,

 

I am doing development in scoped app. I am overriding default UI actions `Insert` and `Insert and stay` so they would be conditionally hidden. I was able to successfully achieve hiding when needed but these action share the `action_name` with actions `Submit` and `Save` in form of a new records so those got hidden as well. To overcome this I create custom `Submit` and `Save` actions. I am just curious if there is not more elegant way so I do not have to copy out-of the box functionality and use global `Submit` and `Save` actions since only behavior for `Insert` and `Insert and stay` needs to be changed. 

0 REPLIES 0