Code sets
A code set is a saved list of answer codes and text, such as an agreement scale or a list of regions. Instead of typing the same answers into every question, you fill a question’s answers (or a grid’s rows) from a code set in one step.
Create a code set
Section titled “Create a code set”-
Click More editor actions (⋮) > Codesets. The Codesets dialog lists the existing code sets on the left, and the selected set’s codes and text on the right.
-
Click Add codeset
-
Enter the Codeset name and, optionally, a Description
-
In Codes and text, enter one item per line: the code, then a space or full stop, then the text. For example:
1 Strongly disagree2 Disagree3 Neither agree nor disagree4 Agree5 Strongly agreeIf you leave out the codes, the items are numbered 1, 2, 3 and so on.
-
Click SAVE
Codes must be whole numbers, and each code can only be used once in a set. Names can be up to 100 characters, descriptions up to 1,000 and each item’s text up to 1,000.
Edit or delete a code set
Section titled “Edit or delete a code set”In the Codesets dialog, type in Search codesets to find the set, then:
- Click Edit to change its name, description, codes or text, then click SAVE
- Click Delete, then DELETE to confirm. Questions that already use its answers keep them.
Fill a question’s answers from a code set
Section titled “Fill a question’s answers from a code set”- Click the question’s card in the flowchart
- In the Properties pane, click the Answers tab (or Rows to fill a grid’s rows)
- Click Code sets above the list. The Populate answers from Code Set dialog opens.
- Choose the set in Code Set. Type in Filter by name to shorten the list. A preview of its items is shown.
- Click Populate
- Save the survey
A summary at the top of the Properties pane lists the answers that were added, changed and removed.
You can also do this from Quick Update: click the Codesets icon next to the answers or rows. The answers are filled in Quick Update, and applied when you click OK, Previous or Next.
If the change would break something, nothing is changed and a message explains why. For example, an answer can’t be removed while another question still uses it in piping.