Skip to content
On this page

Field Expression

bash
["multiple"] ["require"] [LABEL] [FIELD NAME] [VALIDATION];

Default fields

Fields always have default labels, for text, it would be "Text".

bash
text;

These are some supported field types by the syntax

NameSyntaxDescription
TexttextSingle line text input
ParagraphparagraphMulti line text input
NumbernumberNumber input
SwitchswitchSwitch with boolean value
DatedateDate input
TimetimeTime input
Date rangedaterangeDate range input
Time rangetimerangeTime range input
Date timedatetimeDate time input
Date time rangedatetimerangeDate time range input

Selection fields

Section fields will have a list of options to choose from with the syntax:

bash
[FIELD NAME] ([OPTIONS]);

For example:

bash
select ("Option 1", "Option 2", "Option 3");
bash
require "Gender" radio ("Male", "Female", "Other");

These are some supported selection field types by the syntax

NameSyntaxDescription
CheckboxcheckboxCheckbox input
RadioradioRadio input
SelectselectSelect input

Custom label

bash
"Field with label" text;

Custom alias

This is useful when you want to use a different key for the field in the model, see Model for more information

bash
"Home Address" text as "address_1";

Released under the MIT License.