Forms and data
Form fields and validation: every field type explained
See all 18 field types, the settings each one has and the checks ProcessIQ makes before a request is submitted.
Last updated
Each workflow has one request form. You build it on the Form tab of the designer, and the person submitting sees it when they choose New request. You need the Workflow Designer or Workflow Administrator role.
Add and set up a field
- Open the Form tab and choose Add field.
- Open the field and set the Label, Key, Type and an optional Section heading.
- Tick Required if the field must be answered.
- Fill in the settings for the type, such as Options, Minimum, Maximum or Maximum length.
- Optionally add Help text, and use the arrows to reorder fields.
The Key is the name that rules and API calls use, for example form.amount. It must start with a letter, contain only letters, digits and underscores, and be unique. Pick keys carefully, because renaming a key breaks anything that refers to it.
Field types and their checks
| Type | What the person sees | Check made |
|---|---|---|
| Text, Text area | One line or a larger box | Optional Maximum length. |
| Rich text | A large text box | Treated as text. |
| Number, Currency | A number box | Must be a number; optional Minimum and Maximum. |
| Date, Date and time | A date or date-time picker | Must be a valid date. |
| Dropdown, Radio buttons | Choose one option | Must be one of the Options. |
| Multi-select | Tick several options | Every choice must be an allowed option. |
| Checkbox, Yes / no | A tick box | True or false. |
| An email box | Must look like an email address. | |
| Phone | A phone box | 7 to 20 characters: digits, spaces, brackets, hyphens and an optional leading +. |
| File | A file chooser | Must be an uploaded file. See file uploads. |
| User selector | A person picker | Stores the chosen person. Can drive assignment. |
| Department selector | A department picker | Stores the chosen department. |
| Calculated value | A read-only result | Worked out from other fields. See conditional and calculated fields. |
For Dropdown, Radio buttons and Multi-select, enter Options one per line. Write value=Label to store one thing and show another.
When checks run
- The form shows problems on screen, and the server checks everything again when the request is submitted, so nothing relies on the browser.
- Required fields are enforced on submit, not when a draft is saved.
- A field that is hidden by a Visible when rule is neither required nor kept.
- A message such as "Amount must be at least 100." appears beside the field.
Check the form before publishing
Select Validate. The workflow will not publish if a key is repeated or badly formed, an option list is empty, or a calculated field has no calculation. Use Simulate to try sample answers. See validate and simulate and why won't my workflow publish. The forms and files module page gives an overview.