How do I hide the 'Insert' and 'Insert and Stay' buttons from the Approval form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2016 12:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 07:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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.
