Copy link to clipboard
Copied
I am working with a form (that receives data from an excel spreadsheet) into a Gender textbox: male or female. In another page later in the document, is a checkbox for male or female. Is there a way for the corresponding checkbox to get autochecked depending on the variable in the textbox?
Copy link to clipboard
Copied
Enter "Male" and "Female" as the export values of your check-boxes (I assume they both have the same name), and then use this code as the custom validation script of the text field:
this.getField("Gender Checkbox").value = event.value;
Copy link to clipboard
Copied
Enter "Male" and "Female" as the export values of your check-boxes (I assume they both have the same name), and then use this code as the custom validation script of the text field:
this.getField("Gender Checkbox").value = event.value;
Copy link to clipboard
Copied
well, correct me if i'm wrong about this, but I think that code is the checkbox controlling what goes in the textbox. I need it to work in the reverse. The excel spreadsheet data I am importing fills in the textbox with male/female and then I need the corresponding checkbox to be checked.
Copy link to clipboard
Copied
Nevermind, it worked both ways. Sorry for doubting you! You have been so helpful!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more