LassoScript Utility
Basics Browse Detail


Tag Link [Action_Param] Category Utility
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String or Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0
Lasso 3 Equivalent [Form_Param]


[Action_Param] returns the value for an HTML form element, URL parameter, or [Inline] parameter. If the named parameter was not specified in the HTML form or URL that loaded the current page or in the nearest surrounding [Inline] tag then no value is returned.

If the optional -Count keyword is specified then the number of repetitions of the named parameter is returned. An optional integer parameter allows each of the repetitions to be returned individually.

The [Action_Params] tag can be used to return an array that contains each of the parameters of the current action as well as all the command tags that define the current action.


[Action_Param: 'Parameter Name']

[Action_Param: 'Parameter Name', -Count]

[Action_Param: 'Parameter Name', Parameter Index]


Required Parameters
Parameter Name The name of the parameter to be returned.
Optional Parameters
Parameter Index The index of the repetition of the parameter to be returned. Defaults to 1 to return the first repetition.
-Count If specified, returns the number of repetitions of a given parameter.
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.


To return all the repetitions of a named parameter:

Use the [Action_Param] tag to return each repetition of a named parameter for the current database action. The following example returns each repetition of the First_Name parameter.

[Loop: (Action_Param: 'First_Name', -Count)]
  <br>[Action_Param: 'First_Name', Loop_Count]