In Cflow, some fields must be filled out before a form can be submitted. These are called mandatory fields, and they are visually indicated by an asterisk (*) symbol. If a mandatory field is left empty, the system prevents form submission and prompts the user with an error message.
For making a field mandatory in a Form, follow the steps below –
- Click on Workflow Setup from the dashboard.
- Select the workflow you want to update.
- Navigate to the Form Creation tab.
- Click on the stage where the field is placed (e.g., Initiator).
- Select the field you want to make mandatory (e.g., Spent Type).
- In the Field Properties panel on the right, go to the Validation tab.
- Under Mandatory, select Yes.
- Click Save to apply the changes.
Example:
In the Expense Report form, the Spent Type field has been set as mandatory. If the user tries to submit the form without selecting a value, an error message appears:
“Some required fields are missing or contain invalid values.”
The form will not be submitted until the required field is filled.
Refer to the screenshot below for illustration: