To configure selection boxes (also called combo boxes or drop-down boxes), use an HTML Property rule (Rule-HTML-Property rule type).
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>
VANDJ 1/21/02 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.
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>
The MULTIPLE
attribute for the SELECT element is not
supported. Q-1606