Copy link to clipboard
Copied
In a pdf form I need one of 3 telephone fields to be mandatory so that I get at least one telepnone number in the form
Copy link to clipboard
Copied
That would require using a script to perform the entire validation and submit process, which is a bit of an overkill...
One alternative it to set up a required (hidden) text field that will concatenate the values of all 3 fields, so that if they are all empty it will be empty as well as the validation process will fail.
If the fields are named Phone1, Phone2 and Phone3 you can use this code as the custom calculation code of that field:
event.value = this.getField("Phone1").valueAsString + this.getField("Phone2").valueAsString + this.getField("Phone3").valueAsString;
Find more inspiration, events, and resources on the new Adobe Community
Explore Now