Sometimes, there are multiple separate text variables that need to be used when back-coding. In such situations, there is a need to combine them into a single Text Variable.
Method
- In the Data Sources tree, hover over any variable and click + > Custom Code > JavaScript > Text.
-
In the JavaScript Code
panel, type an expression such as the following, where v1, v2, and v3 are three variable names (you will need to replace these with your own variable names and modify it to the number of variables that you have):
v1 + ": " + v2 + ": " + v3
- Click Calculate in Properties
.
- Go to General > General and give the variable a Name and Label.
- Do the back coding in the normal way (see How to Back Code Variables in Displayr).