Not technically a Canvas question.
I am returning a field name and field value from a database query. What I want to do is set the value of the field on the HTML form to the value returned. I can build the field name but I can’t seem to then use that field name to set the value. See the code below.
field = “document.enteredValues.” + response.DATA[i] + k.toString();
field.value = response.DATA[i];
The field value resolve to something like document.enteredValue.draglineOB1