Copy link to clipboard
Copied
I want to put many check boxes on a form. However, I also want the ability that if you click one check box it will auto populate another. Can we do this?
Copy link to clipboard
Copied
Hey bhilyardthurston,
You might need to set the value of a field in the Mouse Up event of a check box and do this:
// Set the value of a text field to the export value of this check box if selected
var val = event.target.value;
var f = getField("Text1");
if (val !== "Off") {
f.value = val;
} else {
f.value = "";
}
This code will work with a radio button group, check box, combo box (dropdown) and listbox if the export value of the check box match the button/export value of the other field, but the last line should be changed to:
f.value = "Off";
for radio buttons and check boxes, and the default value for combo boxes and listboxes.
Hope this helps.
Regards,
Anubha
Find more inspiration, events, and resources on the new Adobe Community
Explore Now