This is an old revision of the document!


Locally Hide Ui Elements

This article explains how to locally hide UI elements like notifications, TableView actions or Card menu entries.

You can use the Client Script Library helper functions “locally_hide_elements” and “locally_unhide_elements” to hide/unhide specific UI elements (details below).

For example you could add the following code to the bottom of a newly created Client Script Library:

mod_csl_helpers().locally_hide_elements(["warning", "error", "export_csv"]);

Now, create a Trigger which refers to the above prepared Client Script Library and place this Trigger somewhere on your Default Card. This ensures that your desired settings (whether to show or hide specific UI elements) immediately take effect in the browser of every visiting user.

List of Hideable UI Elements

Notification Bar
"message"            // (blue notifications)
"warning"            // (yellow notifications)
"error"              // (red notifications)
Card Menu
"open_proto"         // Open Proto
"print_card"         // Print
"card_properties"    // Show Properties
"trash_single"       // Put to Trash
"to_menu"            // Put Selected Into Menu ...
TableView Actions Menu
"trash_multiple"     // Put Selected To Trash
"card_update"        // Update Selected
"import_csv"         // Import Spreadsheet
"export_csv"         // Export Selected as Spreadsheet
Print/export