What is a condition?
A condition is a rule we can apply to a form which will trigger an action once that rule has been met. For example, if an assessor marks a student and has concerns about them, they can mark an additional tick box. Upon marking this box, a condition is met and an additional text box is revealed for the assessor to enter their concerns. Conditions help to keep the page clear of irrelevant content by allowing us to hide certain elements until required.
Conditions aren’t limited to hiding and showing elements, they can also be used for other actions such as calculating an overall mark automatically. This type of condition has been used on the BMBS Clinical Competency forms; once the assessor enters their marks, the condition calculates if the student has passed or failed automatically.
Adding a condition in a form
Select the form you want to add a condition.
You will need to Un-Publish any Published forms.
- Select the ‘Fields’ tab.
- Click the ‘Edit Fields’ button.
- Move to and click the field you want to add the condition.
- Using the right-hand menu, scroll down.
- On ‘Visible’, click the radio button ‘conditional’.
- You will be provided with a ‘popup box’ to complete.
- We will be using the ‘Age Range’ field to control the Feedback box
- Check the ‘Age Range’ system name.
- Go back into the condition.
- Find the field.
- In the second drop-down box, select how to compare the values.
- The third box is the value we will be looking for.
- If this is incorrect and does not match the results in the ‘Age range’ field, the condition will not work.
- Click OK.
- Have a quick look at the value.
- The condition that is set-up, is if 0-12 age is selected, then the text box Clinical procedures – student comment will show.
- Check the condition on the form.
- Click the ‘Status’ tab.
- Click the ‘Update status’ button.
- Click ‘New status’.
- Select ‘Published’.
- Click ‘Update’.
You can use the weblink to test the form.
Check the condition you set up.
Other conditions already set up.