Build your form
This tutorial builds the form that applicants fill in. By the end, your form has its fields, the rules for showing and checking them, and the access that each role has to each field. You then preview the form as each role and state.
Prerequisites
- A workflow with states and edges. Refer to Build your workflow: edges and edge permissions.
Step 1: Open the Form Builder
- On the scheme overview page, select the Versions card.
- Select Edit next to the form that you want to configure.
- Select Form.
Step 2: Add form components
A form component is one field or content block on the form.
- Select a component from the component list.
- Set its position on the form.
- Fill in the details that the component needs, such as the field name and whether the field is mandatory.
- Set the component permission for each role and state. To set many permissions at once, refer to Set component permissions.
- Repeat for every field.
Each component type needs different details. Refer to Form components.
Step 3: Add form logic
Form logic shows or hides fields, or displays messages, based on what the applicant enters.
- Select the Logic tab.
- Add a logic rule. You can show fields, or display an error message, a warning message or an error banner.
- To restrict the format of an input, add a regular expression. Refer to Regex patterns.
Refer to Add form logic.
Step 4: Preview the form
- Select Preview at the top right of the Form Builder.
- Select a state in the left list and an actor in the right list. The preview shows the form as that actor sees it in that state.
- Test your logic rules.
Refer to Preview a form configuration.
Next step
Continue to Publish and test your scheme.