How to Code Multiple Other Specify Options

From Q
Jump to navigation Jump to search

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 Text Variable. This is done by:

  • In the Variables and Questions tab right-click Insert Variable(s) > JavaScript Formula > Text.
  • Fill in the Name and Field question as appropriate.
  • In the Expression 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

See also