I want to create piped in javascript and then use the value which is stored in the corresponding element/field in my script. I have tried to concatenate the required string using "+", but it doesn't work. Would anyone know how to solve this?
Thanks for any ideas
This doesn't work:
var i = 1;
var x = "${q://QID4/SelectedAnswerRecode/"+i+"}";
alert(x); //the message box is empty
or
var myName = "someName";
var efield = "${e://Field/" +myName+"}";
alert(efield);
This works:
var x = "${q://QID4/SelectedAnswerRecode/1}";
alert(x);
Best answer by TomG
View original