SETREQUIRED
Set whether or not a field is required.
Parameters
field String (required) - The data name for the field
required boolean,null (required) - Boolean value representing whether the field should be required, or null to restore the original state
Examples
// Sets the weather summary field as required
SETREQUIRED('weather_summary', true);// Sets the weather summary field as not required
SETREQUIRED('weather_summary', false);// Unsets any override previously set by SETREQUIRED and uses the original setting from the form schema
SETREQUIRED('weather_summary', null);Updated 9 months ago