Validation script for a text field to be required based on dropdown selection not working!
Hi, I am working in Acrobat DC and created a terms and conditions form used for clients to sign and return. One of the dropdown selections allow the client to either "Authorize" or "Not Authorized" us to use their credit card. There are several text fields, whereby the default is "Not Required", however if they select "Authorize", I want those text fields to change to "Required". I have tried custom validation scripts recommended in other posts, but when selecting the "Authorize" option in the dropdown, those text fields still DO NOT change to required. The current script I am using is in the dropdown field:
this.getField("Name of text field").required = (event.value=="OTHER");
I have also tried similar script in each of the text fields, but to no avail.
I also tried to use this.calculateNow(); in the document level javascript, but again, doesn't change text fields to required after the dropdown selection.
Summary, any of the custom validation scripts I have used don't change text fields from Not Required to Required when completing the form.
Can anyone help?
Thank you,
Bob
