Visibility Property

You can dynamically hide or show an element using script. Typically, you would test a condition or user input at runtime, and then hide one or more elements to present an appropriate view.

if(field['discount'] == 0) {

  Text8.visible = false;

}

As for all element properties, you should change the visibility of an element only from within a script attached to the same element, or from within the onLoad Handler. Otherwise, the location of the element in the report may influence the outcome.

See Also

Debugging a Viewsheet Script, for information on making scripts self-contained.

Script Evaluation Order, for information about order of evaluation and its effects.

<< Font Property © 1996-2013 InetSoft Technology Corporation (v11.5) Alignment Property >>