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 elements.

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 created 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.

Currently it's possible to hide the following elements:

In the notificatin bar:

message
warning
error

In the card menu:

print_card
card_properties
open_proto
trash_single
to_menu

In the TableView actions menu:

import_csv
export_csv
trash_multiple
card_update
Print/export