• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Radio buttons to set Text Field Variable in PDF Form

New Here ,
Apr 23, 2020 Apr 23, 2020

Copy link to clipboard

Copied

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! 

TOPICS
Acrobat SDK and JavaScript

Views

77

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 27, 2020 Apr 27, 2020

Copy link to clipboard

Copied

LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines