captureranks
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| captureranks [2022/10/05 09:37] – [Embedded Fields] admin | captureranks [2024/01/24 16:12] (current) – admin | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| * Saves recodes of ranked choices to embedded data fields. | * Saves recodes of ranked choices to embedded data fields. | ||
| * Ranked items can be piped on the next page - no additional questions, blocks, or survey flow logic needed. | * Ranked items can be piped on the next page - no additional questions, blocks, or survey flow logic needed. | ||
| + | |||
| + | Here is a demo of a Pick, Group, Rank question: | ||
| + | {{ : | ||
| This function is available for a reasonable fee. Contact **[[https:// | This function is available for a reasonable fee. Contact **[[https:// | ||
| ===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
| ==== Survey Header ==== | ==== Survey Header ==== | ||
| - | To make the function available to all questions in the survey, copy the function to the Survey Header inside a script tag: | + | Add the captureRanks function to the survey header to make it available to any question in the survey. Go to Look & Feel -> General -> Header edit -> {{:: |
| - | Add the captureRanks function to the survey header to make it available to any question in the survey. | + | |
| < | < | ||
| < | < | ||
| Line 36: | Line 38: | ||
| </ | </ | ||
| ===== Embedded Fields ===== | ===== Embedded Fields ===== | ||
| - | The captureRanks function saves both labels (html or text) and ranks of ranked items into embedded data fields. | + | The captureRanks function saves both labels (html or text) and recodes |
| ==== Embedded Field Names ==== | ==== Embedded Field Names ==== | ||
| Embedded data field names are in two formats. For PGR questions with more than one group, the embedded field names include a ' | Embedded data field names are in two formats. For PGR questions with more than one group, the embedded field names include a ' | ||
| Line 53: | Line 55: | ||
| **delim** is a delimiter used to break the embedded data field names into sections. The delimiter is placed between each section. | **delim** is a delimiter used to break the embedded data field names into sections. The delimiter is placed between each section. | ||
| - | Default: " | + | Default: |
| ==== groupText ==== | ==== groupText ==== | ||
| **groupText** is the text used in the group section of the embedded data field names. The group section in only used for Pick, Group, Rank (PGR) questions with more than one group. | **groupText** is the text used in the group section of the embedded data field names. The group section in only used for Pick, Group, Rank (PGR) questions with more than one group. | ||
| - | Default: " | + | Default: |
| ==== labelText ==== | ==== labelText ==== | ||
| **labelText** is used in embedded data field names that capture labels of ranked items. | **labelText** is used in embedded data field names that capture labels of ranked items. | ||
| - | Default: " | + | Default: |
| ==== prefix ==== | ==== prefix ==== | ||
| **prefix**, if not blank, is used at the beginning of embedded data field names. | **prefix**, if not blank, is used at the beginning of embedded data field names. | ||
| - | Default: "" | + | Default: |
| ==== rankText ==== | ==== rankText ==== | ||
| **rankText** is the text used to in the rank section of embedded data field names. | **rankText** is the text used to in the rank section of embedded data field names. | ||
| - | Default: " | + | Default: |
| ==== recodeText ==== | ==== recodeText ==== | ||
| **recodeText** is used in embedded data field names that capture recodes of ranked items. | **recodeText** is used in embedded data field names that capture recodes of ranked items. | ||
| - | Default: " | + | Default: |
| ==== textOnly ==== | ==== textOnly ==== | ||
| **textOnly** is a boolean used to remove HTML from labels when set to true. | **textOnly** is a boolean used to remove HTML from labels when set to true. | ||
captureranks.1664977055.txt.gz · Last modified: by admin
