LassoScript Utility
Basics Browse Detail


Tag Link [Req_Field] Category Results
Type Substitution Source Available No
Support Abbreviation Version 3.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.x


[Req_Field] can be used to output the names of each of the required fields or columns which were specified for the current database action.

When called with a -Count parameter this tag returns the number of required fields that were specified.

When called with a numeric parameter this tag returns the name of one of the required fields.

Since the -Required command tag can only be used within Classic Lasso actions in HTML forms and URLs, this tag cannot be used within [Inline] ... [/Inline] tags.



[Req_FieldField Number]


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.
-Count Optional parameter outputs the number of required fields.
Field Number Optional numeric parameter outputs the name of one of the required fields.


To display the current required fields:

Use the [Req_Field] tag within [Loop] ... [/Loop] tags. The following example shows two required fields First_Name and Last_Name.

[Loop: (Req_Field-Count)]
  <br>[Req_Field: Loop_Count]