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

Select a radio button and put text in another area.

New Here ,
Jul 27, 2016 Jul 27, 2016

Hello,

I have a PDF document that has three radio buttons "Group1", each button has a number that I would like to put into another area named "text1".

When I select the fist radio button, I would like the number 79 put into the text field.

when I select the second radio button, I would like the number 80 put into the text field.

When I select the third radio button, I would like the number 87 put into the text field.

I have seen a couple of different formulas out there but I am unable to get it to work for my purposes.  I am really new to this part of Adobe and I am really scratching my head on this one.  Could it be possible to receive a little assistance?

These are "group1"

This is "text1"

TOPICS
Acrobat SDK and JavaScript , Windows
520
Translate
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 ,
Jul 27, 2016 Jul 27, 2016

Place these values as the "Radio button choice" for each field in Group1 (under Properties - Options), and then use this code as the custom calculation code of Text1:

event.value = this.getField("Group1").valueAsString=="Off" ? "" : this.getField("Group1").valueAsString;

Translate
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
New Here ,
Jul 27, 2016 Jul 27, 2016
LATEST

You absolutely ROCK!!!!

Thank you very much for your assistance in this issue.  I can somewhat make sense now from your reply and possible learn more from it as I progress in my Adobe ventures.

Again, thank you very much.

Justin 

Translate
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