Tag Link | [Checked] | Category | Database |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 1.0 |
Change | Unchanged | Data Source | FileMaker Pro |
Output Type | String | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5, Lasso 2.0, Lasso 1.x |
[Checked] displays the word "checked" if the current value list item is selected in the field assocated with the value list.
This tag should be used within [Value_List] ... [/Value_List] tags to place the "checked" parameter within HTML <input> tags for radio buttons or checkboxes.
[Value_List: 'Field Name']
<input type="checkbox" name="Field_Name"
value="[Value_ListItem]" [Checked]> [Value_ListItem]
[/Value_List]
[Value_List: 'Field Name']
<input type="radio" name="Field_Name"
value="[Value_ListItem]" [Checked]> [Value_ListItem]
[/Value_List]
No Parameters Required.
To display HTML check boxes for a FileMaker field with an associated value list:
Use the [Value_List] ... [/Value_List] and [Value_ListItem] tags to generate check boxes with the appropriate values and the [Checked] to ensure that the proper check boxes are checked, based upon the current field values.
The following example creates a series of check boxes for the Favorite_Color field. The results show Yellow checked as the favorite color.
[Value_List: 'Favorite_Color']
<br><input type="checkbox" name="Favorite_Color"
value="[Value_ListItem]" [Checked]> [Value_ListItem]
[/Value_List]
<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
To display HTML radio buttons for a FileMaker field with an associated value list:
Use the [Value_List] ... [/Value_List] and [Value_ListItem] tags to generate radio buttons with the appropriate values and the [Checked] to ensure that the proper radio buttons are selected, based upon the current field values.
The following example creates a series of radio buttons for the Favorite_Color field. The results show Yellow selected as the favorite color.
[Value_List: 'Favorite_Color']
<br><input type="radio" name="Favorite_Color"
value="[Value_ListItem]" [Checked]> [Value_ListItem]
[/Value_List]
<br><input type="radio" name="Favorite_Color"
value="Red"> Red
<br><input type="radio" name="Favorite_Color"
value="Blue"> Blue
<br><input type="radio" name="Favorite_Color"
value="Yellow" checked> Yellow