SelectOptions Element
The SelectOptions element specifies options for a drop-down list.
Syntax
<SelectOptions
BlankPattern = "Text"
Len = "Integer"
MoreText = "Text">
</SelectOptions>
Attributes
Name | Description |
---|---|
BlankPattern | Required Text. The BlankPattern attribute is used to generate a localized text pattern for displaying text values for lookup fields that are blank (empty string). In the United States, this is localized as "(Item ^1)". ^1 is replaced with the item ID of the item being referenced. |
Len | Required Integer. The Len attribute causes the members of the drop-down list to be truncated to the specified number of Unicode characters if they exceed the value of Len. This prevents the drop-down menu from being excessively wide. |
MoreText | Required Text. The MoreText attribute specifies what is displayed in order to indicate that the string has been truncated (typically an ellipsis, "..."). |
Related Elements
Parent Elements |
---|
RenderPattern |
Remarks
Conditional rendering is based on the display mode. New items use the default value of the field, while Edit items use the current value of the field to set the value of the HTML Selected attribute, with Selected=True added for the default or current value of the item.
For Lookup field types, this element outputs the sequence <OPTION VALUE=ID>Title</OPTION>
.
Example
The following example specifies options for a drop-down list.
<SelectOptions Len="100" MoreText="..." BlankPattern="(Item ^1)">
</SelectOptions>