hide()

Hides the elements in a set. This doesn't remove the elements; to make them visible again, use the function show().

These functions are used by the Conditional Script Wizard, as you can see when you open a Conditional Script and click the Expand button; see Showing content conditionally.

Example

This script hides or shows the elements matched by the selector of the script (which are stored in the results object), depending on the value of the data field Country in the current record.

if (record.fields["Country"] == "CANADA") {
results.show();
} else {
results.hide();
}
 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:49 AM