Skip to main content
Participant
April 23, 2020
Question

Radio buttons to set Text Field Variable in PDF Form

  • April 23, 2020
  • 1 reply
  • 361 views

Currently writing a form to change the value of a text field based on the radio button selected.  The form im making has to do with "Normal Hours , Extended Hours and Holiday Hours".  So when a tech is filling out the form he selects which set of hours he is in and the form auto fills the $ amount associated with that timeframe.  So if he selects normal hours it shows a $ amount and changes if he selects a different radio button. My radio button group name is "Hours" and the field I need changed is "A01 Unit Price" I would like to do a custom calculation within the text field itself since I have 60+ field that I will need to add 3 unique variables to. Not sure the best way to accomplish this and any help or ideas would be appreciated! 

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
April 27, 2020

Use a simple calculation in the unit price field. Just set the calcualtion to get the value of the radio button field. 

Set the export values of the radio buttons to $amount.

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