[Selected] displays the word "selected" if the current value list item is selected in the field assocated with the value list.
This tag should be used within LDML [Value_List] ... [/Value_List] tags to place the "selected" parameter within HTML <option> tags for select lists or pop-up menus.
<select name="Field_Name">
[Value_List: 'Field Name']
<option value="[Value_ListItem]" [Selected]>
[Value_ListItem]
</option>
[/Value_List]
</select>
Use the [Value_List] ... [/Value_List] and [Value_ListItem] tags to generate a pop-up menu with the appropriate values and the [Selected] to ensure that the proper menu items are selected, based upon the current field values.
The following example creates a pop-up menu for the Favorite_Color field. The results show Yellow selected as the favorite color.
<select name="Favorite_Color">
[Value_List: 'Favorite_Color']
<option value="[Value_ListItem]" [Selected]>
[Value_ListItem]
</option>
[/Value_List]
</select>
<select name="Favorite_Color">
<option value="Red">
Red
</option>
<option value="Blue">
Red
</option>
<option value="Yellow" Selected>
Red
</option>
</select>
<:br><input type="checkbox" name="Favorite_Color"
value="Red"> Red
<:br><input type="checkbox" name="Favorite_Color"
value="Blue"> Blue
<:br><input type="checkbox" name="Favorite_Color"
value="Yellow" checked> Yellow
Tag Link | [Selected] | Category | Database |
---|---|---|---|
Type | Substitution | Data Source | FMP |
Support | Preferred | Version | 2.5 |
Output Type | String | Security | None |
Implementation | Sets | Lasso 5.0,LDML3x,LDML25 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft