/ Id-Extras Forum / Check boxes calculation

  • Author
  • #7601 Reply
    Sarah C

      Hi,

      I need to create an interactive pdf. This document is a test with true and false check boxes. How can I calculate the number of true boxes checked?

      And how can I link the boxes so when true is checked, false is automatically unchecked for every question?

      #7602 Reply
      Ariel
      Keymaster

        Hi Sara,

        This is actually quite simple, and no programming is needed.

        (1) In InDesign, set up pairs of “radio buttons”. With radio buttons, if one is checked, the other is unchecked.

        (2) In FormMaker in InDesign, set each button’s style to “Check”. This will give you check marks in the PDF instead of round buttons. (The change is not visible in InDesign, but you’ll see it in Acrobat.)

        (3) Make sure each pair of buttons has a different name (Button 1, Button 2). Give all the left buttons the value of 0 in InDesign’s Buttons and Forms panel, and all the right buttons the value of 1.

        (4) Add a field in InDesign that will display the total. Select the field, and in FormMaker, under the Calculate panel, set that field to show the sum of all the radio buttons:

        That’s it. Export the form as usual with FormMaker, run the FormMaker command in Acrobat, and everything should work as desired:

        #7620 Reply
        Sarah C

          Thanks a lot,

          So : Radio button are set.

          But I’m having issues with the the field displaying the total.

          When I set the format to number. I cannot specify to currency/none.
          Nothing appears as it was in the older version.

          And then, when I’m in acrobat, that field is displaying dollars and doesn’t appears with the right font and alignment. Looks like the sum is ok but not the rest.

          #7621 Reply
          Ariel
          Keymaster

            Hi Sarah,

            Can you post a screenshot of what you’re seeing. It’s a little difficult to understand what issue you’re having.

            I just tried setting the format to number, and I have no difficulty in setting the currency to none?

            Also, the font and alignment works fine for me.

            So a screenshot would definitely help, also of the result you’re seeing in Acrobat, and also of the settings you’ve got in FormMaker in InDesign.

            Thanks!

            #7623 Reply
            Sarah C

              Here’s a screenshot of what I see in formmaker. I can’t access to number options.

              Also if i get back into the “text box option” for this field, every settings (typo, alignment and sum) are lost. Only for that field.

              #7624 Reply
              Ariel
              Keymaster

                Hmm.

                I understand that this a form that you were working on in a previous version of FormMaker?

                This sort of thing can happen because of that.

                Can you try selecting the field, and then clicking the Purge option:

                Does that help?

                #7625 Reply
                Sarah C

                  No. Still the same issues 😕

                  #7626 Reply
                  Sarah C

                    I’ve also tried to purge the entire document and it didn’t change.

                    #7627 Reply
                    Ariel
                    Keymaster

                      Are you using the latest version (4.0.3)? Is there any chance you could email me the document so I can try to debug the issue? That would be extremely helpful!

                      Thanks,

                      Ariel

                    Viewing 9 posts - 1 through 9 (of 9 total)

                    Tagged: 

                    Reply To: Check boxes calculation
                    Your information: