Introduction
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.
Please note these steps require a Displayr license.
Method
- In the Data Sources tree right-click the Plus (+) that appears when you hover over it > Custom Code > JavaScript - Text.
- Fill in the Name and Label fields as appropriate.
- In the JAVASCRIPT CODE field, 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 to the number of variables that you have):
v1 + ": " + v2 + ": " + v3
- Do the back coding in the normal way (see How to Back Code Other Specify Responses).