Skip to content

Commit e828e8d

Browse files
Minor edits
1 parent f756af7 commit e828e8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/required_logic_xls.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This article explains how to add required logic conditions in XLSForm, including
1616

1717
## Adding required logic conditions
1818

19-
Required logic uses <a href="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 <a href="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.**
2020

2121
To add required logic in XLSForm:
2222
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
3636

3737
The format of the required logic condition will differ according to the **type** of the reference question, as detailed in the table below.
3838

39-
| Reference question type | Skip logic condition | Example |
39+
| Reference question type | Required logic condition | Example |
4040
|:-------------------------|:--------------------|:---------|
4141
| select_one | `${reference_question} = 'choice_name'` | `${consent} = 'yes'` |
4242
| select_multiple | `selected(${reference_question}, 'choice_name')` | `selected(${reasons}, 'other')` |
@@ -51,9 +51,9 @@ To learn more about building form logic expressions in XLSForm, see <a href="htt
5151

5252
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.
5353

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:
5555

56-
| Relevance logic condition | Description |
56+
| Required logic condition | Description |
5757
|:---------------------------|:-------------|
5858
| `${reference_question} != ''` | Require only if `reference_question` is answered (not blank). |
5959
| `${reference_question} = ''` | Require only if `reference_question` is unanswered (blank). |

0 commit comments

Comments
 (0)