Skip to main content
Participant
July 20, 2023
Question

Percentile Calcuation only if all scores are entered

  • July 20, 2023
  • 1 reply
  • 225 views

I'm trying to get a percentage to show up ONLY if all of the fields are completed. I have 4 checkboxes, wth points assigned, but I don't want to calcuate the percentage unless everything is completed. Otherwise I would like it blank. Can anyone help?

 

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
July 20, 2023

A custom calculation script is required for this behavior.

What is the exact criteria that determines "everything is completed"?  Provide the form field names. 

 

You can read creating this type of script in these articles:

https://www.pdfscripting.com/public/How-to-Write-a-Basic-PDF-Calculation-Script.cfm

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

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

 

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