How do I hide the 'Insert' and 'Insert and Stay' buttons from the Approval form

ritaaudi
Tera Contributor

Hi: Not sure why I'm seeing 'Insert' and 'Insert and Stay' buttons on the Approval form. Should these display OOB. What's the best way to hide them for the sysapproval_approver table (or restrict to admin)? Thanks, Rita

7 REPLIES 7

Hi Chuck: That's interesting. I have a developer instance and when I lookup Insert for Global table, I see the following. So it appears that the insert button UI action is available OOB, but I don't see it on the Approval form on the developer instance, Why is that??


find_real_file.png


All conditions must be met for the button to appear.



isAdvancedUI() && current.canCreate() && (!current.instanceOf('task') || gs.getProperty('glide.ui.task.insert') == 'true') && (!current.instanceOf('sys_db_object'))



I suspect some of them are failing. For one, glide.ui.task.insert is false by default and sysapproval_approver is not an instance of task.


Tim129
Tera Contributor

Create your own UI Action, within the action name write the action you are overriding, in my example I don't want someone to be able to insert on the table. Make sure to uncheck the form context menu check box.

 
 

Screenshot1.png