Set the maximum length for a field.
SETMAXLENGTH function can be used to set the maximum number of characters for a text field or the maximum count of repeatables, photos, videos, or audio files.
field String (required) - The data name for the field
length number,null (required) - The maximum length of the field
SETMAXLENGTH('weather_summary', 25); // Sets the maximum length of the weather summary field to 25
// Unsets any override previously set by SETMAXLENGTH and uses the original setting from the form schema SETMAXLENGTH('weather_summary', null);
Updated almost 2 years ago