Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Check Boxes and Calculations

New Here ,
Dec 09, 2021 Dec 09, 2021

I have three check boxes... YES, NO, N/A. If yes is checked I need a box off to the right to read 50. If no is checked I need the box off to the right to read 0. If N/A is checked I need the box off to the right to read 0. What formula would I use in the box to the right to read either 50, 0 or 0 by what I check? 

 

Thanks

TOPICS
How to , JavaScript , PDF forms
392
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 09, 2021 Dec 09, 2021

What should the text field's value be if no box is selected? Are these boxes all in the same group? If so, what's their field names? If not, what should happen if more than one box is ticked at the same time?
And should the user be able to override the value?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 09, 2021 Dec 09, 2021

Maybe a better way to ask is, "Are the checkboxes mutually exclusive like radio buttons? Or can they be all be selected at the same time?".

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 09, 2021 Dec 09, 2021
LATEST

You don't need any formula, see this sample PDF:

https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:96f20466-19d1-41ba-825c-d3dc12c282c5

 

Capture_12.png

 

Capture_13.png


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines