LassoScript Utility
Basics Browse Detail

[Value_ListItem]

Tag Link [Value_ListItem] Category Database
Type Substitution Source Available No
Support Preferred Version 5.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 Equivalent [ValueListItem]

Description

[Value_ListItem] returns the value for the current item in a value list. Optional -Checked or -Selected parameter returns only currently selected values from the value list.

Syntax

[Value_List: 'Field_Name']
  [Value_ListItem]
[/Value_List]

[Value_List: 'Field_Name']
  [Value_ListItem-Checked]
[/Value_List]

[Value_List: 'Field_Name']
  [Value_ListItem-Selected]
[/Value_List]

Parameters

Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
-Checked If specified then only selected values from the value list will be output. Equivalent to -Selected.
-Selected If specified then only selected values from the value list will be output. Equivalent to -Checked.

Examples

To display a pop-up menu with values from a FileMaker Pro value list:

Use the [Value_List] ... [/Value_List] and [Value_ListItem] tag. The following example creates a pop-up menu with a single item selected.

<select name="Title">
[Value_List: 'Title']
  <option value="[Value_ListItem]" [Selected]> [Value_ListItem] </option>
[/Value_List]
</select>