This function should be called as `setChoiceValueByVariableName(variableName, [subId], value)` where `variableName` is a string described as "The variable name of the choice(s) being set" in the documentation.
In the SE engine, I used to replace `variableName` with the text that appears on the left of the text field in the form.
With the new JFE engine, these lines of code no longer work (no error message, the text fields are simply no longer populated).
Does anyone know what the variableName parameter should contain when using this API function?
this.setChoiceValueByVariableName("byVariableName", "Modified answer"); // Does not work
this.setChoiceValue(2, "Modified answer"); // Works
Results in:
!
Best answer by fleb
View original