You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/required_logic_xls.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This article explains how to add required logic conditions in XLSForm, including
16
16
17
17
## Adding required logic conditions
18
18
19
-
Required logic uses <ahref="https://support.kobotoolbox.org/form_logic_xls.html#question-referencing">question referencing</a> to make questions required based on previous answers. The question used to define the relevance logic is referred to as the **reference question.**
19
+
Required logic uses <ahref="https://support.kobotoolbox.org/form_logic_xls.html#question-referencing">question referencing</a> to make questions required based on previous answers. The question used to define the required logic is referred to as the **reference question.**
20
20
21
21
To add required logic in XLSForm:
22
22
1. Add a **required** column to the `survey` worksheet.
@@ -36,7 +36,7 @@ If a respondent does not answer a required question, they will not be able to pr
36
36
37
37
The format of the required logic condition will differ according to the **type** of the reference question, as detailed in the table below.
38
38
39
-
| Reference question type |Skip logic condition | Example |
39
+
| Reference question type |Required logic condition | Example |
@@ -51,9 +51,9 @@ To learn more about building form logic expressions in XLSForm, see <a href="htt
51
51
52
52
In addition to setting required logic for a specific response, you can also base it on whether a question was answered or left blank. This is useful when you want to ensure that at least one of two questions is required.
53
53
54
-
Unanswered questions are treated as empty strings, noted as two single apostrophes (‘’). The following skip logic conditions can be used:
54
+
Unanswered questions are treated as empty strings, noted as two single apostrophes `''`. The following required logic conditions can be used:
55
55
56
-
|Relevance logic condition | Description |
56
+
|Required logic condition | Description |
57
57
|:---------------------------|:-------------|
58
58
|`${reference_question} != ''`| Require only if `reference_question` is answered (not blank). |
59
59
|`${reference_question} = ''`| Require only if `reference_question` is unanswered (blank). |
0 commit comments