LassoScript Utility
Basics Browse Detail

-Req

Tag Link -Req Category Database
Type Command Source Available No
Support Abbreviation Version 3.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

-Req specifies that the name/value parameter that follows must have a value specified. This tag is usually used in HTML forms to ensure that values have been entered for all required form inputs. Synonym is -Required.

Syntax

<form action="default.lasso" method="POST">
<input type="hidden" name="-Req" value="">
<input type="text" name="Field_Name" value="">
...
</form>

Parameters

No Parameters Required.

Examples

To specify that an input is required in an HTML form:

Use the -Req tag in an HTML <input> tag. The following example specified that a value must be specified for the First_Name and Last_Name inputs.

<form action="response.lasso" method="POST">
  <input type="hidden" name="-Req" value="">
  <br>First Name: <input type="text" name="First_Name" value="">
  <input type="hidden" name="-Req" value="">
  <br>Last Name: <input type="text" name="Last_Name" value="">
  <br><input type="submit" name="-Nothing" value="Enter">
</form>