Required (attribute of property)
From JRapid
required is an attribute of property.
Contents |
Description
The required attribute is used to ensure that the value of a property has a value when a form is submitted.
The restriction is imposed at client side through JavaScript and at server side by setting the corresponding column of the database table to not null.
Usage
<property name = NAME label = LABEL required = "required" ... />
Example
<entity name="User" label="User>
<property name="firstName" required="required" label="First name" />
<property name="lastName" required="required" label="Last name" />
<property name="email" label="Email" />
</entity>
