...
Info |
---|
Tip: build screen When you are in the Build mode on a webform, you can see if conditional logic has been applied to a question or piece of text by looking in the ‘Conditional’ column. Click Edit to add logic. |
How to use conditional logic settings
When you’re in Edit mode of a form element (a question or piece of text), you’ll see a panel on the right of your screen. Click the ‘Conditions’ tab to apply settings.
...
From the screenshot above:
1 = State: Visible or Hidden (usually 'visible')
2 = All, Any or One (to add more than 1 element so that ‘all’ or ‘any’ are applicable, click the plus icon next to the element)
3 = Options include: Empty / Filled; Checked / Unchecked; Value is /Value is not
Info |
---|
Numbering: Because you’re showing and hiding information and questions according to answers chosen on previous questions, it doesn’t make sense to number the questions on the final published form or tool. But while planning and testing the logic and building the form or tool, it’s really useful. You can see on the table below how the numbering helps state the logic/conditions. It also helps when configuring logic and you need to select items on a long dropdown. |
...
Plan your logic and create your test plan
People often set up a flowchart to map out the logic of a form or tool. I find it helpful to transfer this info a document to plan the numbering and the logic.
This document can then be used as a test plan for your tester.
Here’s an example:
Question / Text | Notes | Conditions / email handler |
---|---|---|
1 What is your full name?* | Text field, required | |
2 What is your email address?* | Email field, required | |
3 What is your phone number? | Phone number field (10 digits), not required | |
4 What type of enquiry do you have? 4a Question 4b Complaint | Radios, required | na |
5 What is your complaint about? | Radios, required | Visible if Q4 value is 4b |
5a Melbourne | ||
5b Geelong | ||
5c Phillip Island | ||
6 The next question (specifically for questions about Melbourne) | Visible if Q4 value is 4a and Q5 value is 5a | |
7 The next question (specifically for complaints about Melbourne) | Visible if Q4 value is 4b and Q5 value is 5a | |
8 The next question (specifically for complaints about Geelong) | Visible if Q4 value is 4b and Q5 value is 5b | |
9 Do you like dogs? | Radios, Yes/No | Visible if TBC |
9 What is your enquiry about? | Radios, required Responses only for | Visible if Q9 value is filled |
9a Apples | If Q4 value is 4a and Q5 value is 5a email apples@vic.gov.au If Q4 value is 4b and Q5 value is 5a | |
9b Bananas | If Q4 value is 4a and Q5 value is 5b email bananas@vic.gov.au | |
9c Oranges | If Q4 value is 4a and Q5 value is 5c email oranges@vic.gov.au |
How to use conditional logic settings
When you’re in Edit mode of a form element (a question or piece of text), you’ll see a panel on the right of your screen. Click the ‘Conditions’ tab to apply settings.
...
From the screenshot above:
1 = State: Visible or Hidden (usually 'visible')
2 = All, Any or One (to add more than 1 element so that ‘all’ or ‘any’ are applicable, click the plus icon next to the element)
3 = Options include: Empty / Filled; Checked / Unchecked; Value is /Value is not
Info |
---|
Numbering: Because you’re showing and hiding information and questions according to answers chosen on previous questions, it doesn’t make sense to number the questions on the final published form or tool. But while planning and testing the logic and building the form or tool, it’s really useful. You can see on the table below how the numbering helps state the logic/conditions. It also helps when configuring logic and you need to select items on a long dropdown. |
Email handlers can have logic too
...