This script will show you how to move the answer labels and not the codes to another variable.
var Rolecodein = f(‘qnr_new_role‘)
var Rolecodeout = f(‘__l2057ROL_CODE‘);
Rolecodeout.set(Rolecodein.valueLabel());
In this example Rolecodein is a drop down the user can select a code label (Manager, Director etc.)
Rolecodeout is then set as that value label “Manager” and not the answer code of “1”.
the key is the .valuelabel()