Tutorial 10 · Basic logic
Clear, disable and read-only
Clear an answer and control editing when a condition matches. These actions keep questions visible.
1. Prepare the survey
Open a practice survey from Home and click Edit. Add these pages and questions in the order shown. Click a question type in the builder palette, then select the question to edit its label and choices. Use Add Page for later pages.
| Page | Question | Type and setup |
|---|---|---|
| Field controls | Lock optional fields? | Single choice · Optional initially · Choices: Yes, No |
| Field controls | Comment to clear | Text box · Optional initially |
| Field controls | Disabled comment | Text box · Optional initially |
| Field controls | Read-only comment | Text box · Optional initially |
2. Configure the logic
Choose the trigger
Choose Fill, clear or lock an answer. Set Lock optional fields? to equals Yes and click Next.
Clear the first field
Choose Clear answer and target Comment to clear. The field clears whenever this rule applies.
Disable and lock other fields
Add another action: Disable question → Disabled comment. Add one more: Read-only question → Read-only comment.
Add the alternative
Expand Otherwise and add Enable question → Disabled comment. When Yes stops matching, the conditional read-only state also stops applying.
Review the controls
Click Next. Check that every action names its intended field. These actions do not change the question text or hide the fields.
3. Review the logic flow
Read the final flow before saving. For conditional rules, YES means the condition matches and NO means it does not. An unanswered source can leave the rule waiting. Use Try answers when it is available, or Back to adjust the setup. View full survey flow provides the surrounding page order and saved rules.
4. Save and publish
Save the reviewed logic
On the final wizard step, click Save logic. Your changes join the survey draft. If the tutorial creates more than one rule or setting, complete and save every part before publishing.
Confirm the draft is saved
Close Logic. Wait for the builder’s save/sync status to complete. You can reopen Logic to check the saved rule or setting. Save logic does not by itself update the public survey.
Publish the survey
Click Publish in the builder, then Publish Now in the confirmation. Use the public link to test the published survey. After later edits, publish again before checking the live result.
Test in a fresh respondent tab
Start with a fresh public survey tab. If you already had an older published version open, reload and start a new response. Use a practice survey for test submissions.
5. Test the respondent experience
Run both the matching and alternative cases. Change answers and revisit earlier pages where the test asks you to, rather than testing only one path.
| Try this | Expected result |
|---|---|
| Fill the fields, then choose Yes | The clear field becomes blank, the disabled field cannot be edited, and the read-only field retains its text. |
| Switch to No | The fields become editable again. Cleared text is not restored. |
| Try typing while Yes matches | A field controlled by Clear answer will not retain its draft text. |
Common mistakes and useful limits
- Do not use Clear answer if you need to recover the previous value later.
- Disabled answers are omitted from eligible saved answers. Read-only answers can remain part of the response.