Back Forward Source HTML — Selection boxes

Selection BoxTo configure selection boxes (also called combo boxes or drop-down boxes), use an HTML Property rule (Rule-HTML-Property rule type).

The VALUE attribute

Although HTML 4.01 does not require the VALUE attribute for each OPTION in a selection box, do include the VALUE attribute in source HTML. This allows the system to display the current value of the property as the default (checked) value in the selection box.

Use syntax similar to this to define a selection box:

<SELECT NAME="myPage.myProperty">
   <OPTION VALUE="CORP">Corporate Account
   <OPTION VALUE="REG">Regular Account
   <OPTION VALUE="PRES">Prestige Account
</SELECT>

If this selection box is defined in an HTML Property rule, omit the NAME attribute and its associated VALUE. In this situation, the system supplies the NAME attribute automatically based on the property that caused the HTML Property rule to be used.

Using the Param keyword in the NAME attribute

If the selection box choice is to become the value of a parameter, use the Param keyword in the name attribute.

<SELECT NAME="Param.myParameter">
   <OPTION VALUE="CORP">Corporate Account
   <OPTION VALUE="REG">Regular Account
   <OPTION VALUE="PRES">Prestige Account
</SELECT>

MULTIPLE attribute

The MULTIPLE attribute for the SELECT element is not supported.

zzzSource HTML tags and attributes