LassoScript Utility
Basics Browse Detail


Tag Link -Required Category Database
Type Command Source Available No
Support Preferred 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


-Required 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 -Req.


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


No Parameters Required.


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

Use the -Required 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="-Required" value="">
  <br>First Name: <input type="text" name="First_Name" value="">
  <input type="hidden" name="-Required" value="">
  <br>Last Name: <input type="text" name="Last_Name" value="">
  <br><input type="submit" name="-Nothing" value="Enter">