Conditional Display Directives

<< Click to Display Table of Contents >>

Navigation:  General Functions > Configuring the MIE (Programmer's Guide) > Portal Design > Request Portal Design (Programmer's Guide) > Template Construction > STEP<n>-AREA<m> >

Conditional Display Directives

The Request Portal encourages using HTML DIVs to conditionally show and hide content.  Because of this, the PAGE<n>-AREA<m> tag supports a zone for specifying conditional display.  

Conditional display directives are evaluated upon page rendering.

Conditional display directives are specified using the following syntax:

<div ID>,<control value to test>|<operator>|<value to test>

Where:

divID = the name or ID of the div to conditionally show or hide

<control value to test> - the name or ID of the current DOM variable whose current value will be tested

<operator> = { < > = <> <= >= IN }

<value to test> = value to compare, using the operator, to the value in the control.  If the comparison yields true, the div is displayed, otherwise, the div is hidden.

Example:

divSRPSvrReqType550,SRPReqType550|=|2

 

In the example, the divSRPSvrReqType550 will be displayed if the value currently in SRPReqType550 is equal to 2.