0
Hide the trash, duplicate and add buttons globally
Hello everyone,
Is there a way to hide the trash, duplicate and add buttons globally?
I find I have to add the formula to every separator of every tab in every form...
6 replies
-
Another way to work around this is to uses dashboards/pages to create a UI for your users to use. That way you only need to hide it tables that they actually open.
-
The following works in the iPhone app. I don't have an Android phone so I can't test for that.
dialog("Custom CSS", html(" <script> const customCSS = '.hud-menu-button.i-32-24.i-light-grey.i-setting-print{display:none;}.hud-menu-button.i-32-24.i-light-grey.i-setting-trash{display:none;}.hud-menu-button.i-32-24.i-light-grey.i-setting-copy{display:none;}.hud-menu-button.i-32-24.i-light-grey.i-setting-add{display:none;}'; const customSheet = new CSSStyleSheet(); customSheet.replaceSync(customCSS); document.adoptedStyleSheets = [customSheet]; var interval = setInterval(() => { var btn = document.querySelector('.nx-alert .nx-button-text'); if (btn) { btn.click(); clearInterval(interval); } }); </script> "), ["close"])
Where to put the script:
- Open your database
- Select the wrench icon
- Select the 4-square icon
- Select options
- Select Trigger after open and paste the script in the text area
- Save the changes
- Exit your database since the script only runs once after the database is initially opened
- Open your database
Content aside
- Status Answered
- 3 mths agoLast active
- 6Replies
- 74Views
-
3
Following