Forum Discussion
PDF Publishable Certification Checklist
Hi Yvonne,
You should not need an 'else' statement in this case.
Be sure you have these two lines in your JavaScript:
const Box2a = form.getCheckBox('Box2a');
const Box2b = form.getCheckBox('Box2b');
Also, be sure there is indeed a checkbox labeled Box2a and and another labeled Box2b in your PDF form. But also be sure you have not accidentally named two fields in the form with the same name.
If you're able to share your JavaScript (the PDF form would be helpful too), I can probably troubleshoot this for you.
- Yvonne-Briljent10 months agoCommunity Member
Hi, Steve!
Thank you for your reply. I was able to get my JavaScript to work for me. I had both lines you mentioned in my code. I went back through and checked for any syntax errors, then simplified my string names and it worked! I'll need to trace backward to see where my exact point of error was, although one error I did correct was a capitalization/case error.
Thank you, again!
Yvonne