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

Radio button choice in text field

New Here ,
Dec 10, 2019 Dec 10, 2019

Copy link to clipboard

Copied

I'm sure this is simple but I'm new to scripting...I have an Adobe form with 12 radio buttons in the same group, each one with different choice name (Option 1, 2, etc.). I would like the button choice name to appear in a text box when it's selected. Using Acrobat Pro DC.

Views

479

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 ,
Dec 10, 2019 Dec 10, 2019

Copy link to clipboard

Copied

Please post the name of the Adobe program you use so a Moderator may move this message to that forum

Votes

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 ,
Dec 10, 2019 Dec 10, 2019

Copy link to clipboard

Copied

LATEST

Use a calculation script in the Text field to set the value of the field to the radiobutton group value.

 

var cRadioVal = this.getField(<name of radio button>);

event.value = (cRadioVal=="Off")?"":cRadioVal;

 

You can read more about radio buttons here:

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

 

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

Votes

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