Who is this article for?Administrators building forms.
Report admin permissions are required.
Coruson forms are smart forms, meaning that the fields on display will change based on the selections made by the end user. These changes on the form are performed by rules.
Form rules are conditions that will change what fields or sections will appear, and they can also affect the behaviour of the fields as well.
Examples:
- When filling in an accident report form you may be asked if the accident resulted in an injury. The answer to this question can show injury fields that are previously hidden.
- In some scenarios you may need fields to become mandatory and so rules can change the field settings to become mandatory under specific conditions.
- If witnesses statements are being captured then some key information can become confidential.
This article outlines how to configure form rules and is split into the following sections:
1. How to Add a Rule to a Field
- Go to Administration, then Reporting Admin, then finally Forms.
- Open the form you need to edit.
Reminder: You can only edit a draft form. If your form is active then you will need to revise it.
- Locate the field you would like to edit.
- Click on the action button and select Edit
- Click Add to add a rule.
- Enter your Description and click Add.
- Enter the condition rule and click Add.
- Enter the field behaviour required.
Need to know more about the field behaviours? Visit How to Configure Field Settings for more information.
2. How to Add a Rule to a Section
- Go to Administration, then Reporting Admin, then finally Forms.
- Open the form you need to edit.
Reminder: You can only edit a draft form. If your form is active then you will need to revise it.
- Locate the section you would like to edit.
- Click on the action button and select Edit
- Click Add to add a rule.
- Enter your Description and click Add.
- Enter the condition rule and click Add.
- Enter the field behaviour required.
Need to know more about the field behaviours? Visit How to Configure Field Settings for more information.
Article Comments
1 comment
Hi,
Would you please clarify how does it work when you add several condition blcks?
Let me explain my doubt.
When you add several conditions in a condition block is it possible to choose if all the conditions have to be matched (and logic) or just any of them (or logic).
When you add several condition blocks, do all they have to be matched or just any of them to apply the rule? I haven't found any reference to it in this website.
Thank you so much.
Alberto Castro