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

How to check a box based on one of 3 other checkboxes and a numeric field?

New Here ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

I have a situation where I would like the following 'then' action to be taken given various combinations of box checks and field values:

 

if Box1 is checked and Field1 is < 10, then check Box101

if Box1 is checked and Field1 is between 10 and 20, then check Box102

if Box1 is checked and Field1 is > 20, then check Box103

 

if Box2 is checked and Field1 is < 10, then check Box201

etc like with Box1 above for different Field1 values

 

if Box3 is checked and Field1 is < 10, then check Box301

etc like with Box1 above for different Field1 values

 

Box1, Box2, and Box3 are radio buttons, so only one can be selected at a time.

TOPICS
How to , JavaScript , PDF forms

Views

115

Translate

Translate

Report

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 ,
Apr 10, 2024 Apr 10, 2024

Copy link to clipboard

Copied

LATEST

Read these two articles:

https://www.pdfscripting.com/public/How-to-write-an-If-statement.cfm

https://www.pdfscripting.com/public/Checkboxes-and-Radio-Buttons.cfm

 

The first one covers most of what you need to know. 

 

 

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

Votes

Translate

Translate

Report

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