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

check box count continued on PG 2

Community Beginner ,
Apr 11, 2024 Apr 11, 2024

Copy link to clipboard

Copied

I am trying to continue a count on page 2 of a document.

PG 1 works fine and I get a total on the bottom of the page.

I need to have the box show the total from both pages

 

currently there are 24 checkbox on pg 1,  C 1 - C 24

                                                              pg 2, C 25 - C 48

 

var total = 0;

for (var i=1; i<=24; i++) {

    if (this.getField("C "+i).value!="Off") { total++;

    }

}

event.value = total

                                                            

TOPICS
Create PDFs , Edit and convert PDFs , General troubleshooting , How to , JavaScript , PDF , PDF forms

Views

74

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

Copy link to clipboard

Copied

LATEST

If you want to count all checkboxes change i=1; i<=48, if you want to count only boxes on second page change: i=25; i<=48.

You could also give all checkboxes export value of 1 and then in total field go to 'Calculate' tab and select 'Value is the' and pick checkboxes you wish to count.

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