How do i auto populate text field from multiple checkboxes Into 1 text field
Hi all,
I want to copy multiple text fields into 1 text field (basically trying to create a summary page) using check box. Please note that i have over 100 questions and towards ecah question there are 4 check boxes i. e Yes, No , N/A and N/I. Primarily i want the text field to auto populate for the incorrect answer.
Eg,
I have text field 1.12.1.1 with text abcd and check box Checkbox1
I have another text fields 1.12.1.2 with text xyz and checkbox2
Now i have both these text fields to be copied into "findings" text field if both the check boxes are clicked as NO
At present i am using this code which works very well with one check box. When i copy this to the other checkbox finding is replaced and it shows only one text at a time
var fFrom = this.getField("1.12.1.1");
var fTo = this.getField("findings");
if (event.target.value == "Off") {
fTo.readonly = false;
fTo.value = "";
}
else {
fTo.readonly = true;
fTo.value = fFrom.value;
}
Thanks for all your help
