Set whether or not a field is required.
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
// 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 over 2 years ago