No announcement yet.

Check box affects calculation

  • Filter
  • Time
  • Show
Clear All
new posts

  • Check box affects calculation

    I'm trying to set up the fields, so that a check box adds another number to a calculation.
    For example, I have 4 text fields. Lets call them A, B, C & D. And a check box.
    A = a user inputted number
    B= (A - 10)/2
    C= User inputted number
    D= B+C IF the check box is ticked, otherwise, it's equal to B.

    Can anyone explain how to do this, or if it's even possible.


  • #2
    Dear Keiki,

    The calculation should be controlled by javascrpit. We will assign your requirements to our related team for writing the javascript and contact you soon once the demo file is available.


    • #3
      Dear Keiki,

      Thanks for your time to wait for our response.According to your request,we have write a demo file for your references ,please refer to :JS Demo.pdf.
      To know how to control to B and D value via Javascript codes,please go to "Home"tab in Foxit PhantomPDF>"Select>Select Annotation",right click on B text field and check box separately to open the "Text field properties"dialog box and "check box properties"dialog box,then you can see the JS codes in the opened properties dialog box there.
      For details,please refer to attached screenshots.
      Attached Files


      • #4
        Thanks for your help, and hard work. I was able to successfully integrate it into my pdf. Thanks again.