Copy link to clipboard
Copied
Hi Guys
I've designed a PDF form and have used a button to check all required fields are completed. The problem is the button won't accept any fields with a zero(0) amount. Is there any around this?
Thanks
Copy link to clipboard
Copied
Replace
if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name);
with
if ((f.type=="text" && f.valueAsString=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name);
nothing more
Copy link to clipboard
Copied
You can ref here: https://nclvn.com/
Copy link to clipboard
Copied
What code does you use?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now