From 0d9caa1da2073e46f17afac513c98a392edbb125 Mon Sep 17 00:00:00 2001 From: RomanTsukanov Date: Wed, 29 Nov 2023 13:38:52 +0400 Subject: [PATCH] Add info about accessing a total row cell from expressions (fix #7393) --- docs/design-survey-conditional-logic.md | 36 ++++++++++++++++++++----- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/docs/design-survey-conditional-logic.md b/docs/design-survey-conditional-logic.md index 1d6a0e3327..0992d7df6a 100644 --- a/docs/design-survey-conditional-logic.md +++ b/docs/design-survey-conditional-logic.md @@ -42,11 +42,33 @@ In single- and multiple-selection question types (Dropdown, Checkbox, Radiogroup Certain question types can contain multiple values. Use a dot symbol to access a specific value (item or cell): -| Question Type | Syntax | -| ------------------------------------------------------------------------ | ----------------------------------- | -| [Multiple Text](/Documentation/Library?id=questionmultipletextmodel) | `{questionname.itemname}` | -| [Matrix](/Documentation/Library?id=questionmatrixmodel) | `{questionname.rowname}` | -| [Matrix Dropdown](/Documentation/Library?id=questionmatrixdropdownmodel) | `{questionname.rowname.columnname}` | +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Question TypeSyntax
Multiple Textboxes{questionname.itemname}
Single-Select Matrix{questionname.rowname}
Multi-Select Matrix{questionname.rowname.columnname}
{questionname-total.columnname} (accesses a cell in the total row)
+
[View Demo](/Examples/Library?id=condition-complexquestions (linkStyle)) @@ -54,8 +76,8 @@ In dynamic questions, use a zero-based index to access a specific value (questio | Question Type | Syntax | | ---------------------------------------------------------------------- | ------------------------------------------ | -| [Panel Dynamic](/Documentation/Library?id=questionpaneldynamicmodel) | `{dynamicpanelname[index].questionname}` | -| [Matrix Dynamic](/Documentation/Library?id=questionmatrixdynamicmodel) | `{dynamicmatrixname[rowindex].columnname}` | +| [Dynamic Panel](/Documentation/Library?id=questionpaneldynamicmodel) | `{dynamicpanelname[index].questionname}` | +| [Dynamic Matrix](/Documentation/Library?id=questionmatrixdynamicmodel) | `{dynamicmatrixname[rowindex].columnname}` | In addition, Matrix questions support a `row` prefix that allows you to access cells on the same row: `{row.columnname}`. Similarly, you can use a `panel` prefix to access questions in the same Panel: `{panel.questionName}`.