GlideForm - setMandatory(String fieldName, Boolean mandatory)

Makes the specified field mandatory.

Whenever possible, use a UI policy rather than this method.

Table 1. Parameters
Name Type Description
fieldName String Name of the field.
mandatory Boolean When true makes the field mandatory. When false makes the field optional.
Table 2. Returns
Type Description
void