Skip to main content
Known Participant
July 27, 2016
Question

Select a radio button and put text in another area.

  • July 27, 2016
  • 1 reply
  • 600 views

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"

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 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;

justiggerAuthor
Known Participant
July 27, 2016

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