Skip to main content
Participant
December 4, 2017
Answered

How to use a radio button to add a discount to a pdf form calculation.

  • December 4, 2017
  • 1 reply
  • 429 views

I am building a form for my company's sales team. I need to be able to add a cash discount should the customer choose this payment option. I was thinking of using a radio button to simply apply the discount for the sales person. However, I don't know how to write the code for this. How would I make this work without making the form overly complicated for my sales team? Or is there a simpler option that I could use?

This topic has been closed for replies.
Correct answer Thom Parker

Here are some links to articles that cover writing conditional calculation scripts.

https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations

https://acrobatusers.com/tutorials/conditional-execution

Calculating field values and more

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
December 4, 2017
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often