Skip to main content
digital rebel
Participating Frequently
October 31, 2016
Answered

Mousedown on Radio Button?

  • October 31, 2016
  • 1 reply
  • 853 views

I've got a radio button and a text field.  If somebody clicks "Red" on the radio button, I'd like the text field to be greyed out and disabled.  If they click "Blue" on the radio button, then the text field should look normal and be enabled for writing.

How do I access the code for the radio button (mouseup event?) to make this happen?

This topic has been closed for replies.
Correct answer Tariq Dar

Digitalrebel,

I assume you are using Acrobat DC, yes you can use Forms> Edit. Rest of steps are same ...

Regards,
Tariq Dar.

1 reply

Legend
October 31, 2016

Hello,digital rebel

This may be achieved using the JavaScript, here is an example: How to I activate/deactivate form field text boxes by clicking a check box field on and off? (PDF Forms JavaScript)

To access JavaScript for an object (text field or Radio button). When you are in Prepare form mode, right click on say text box and choose properties > Actions. Select the trigger option and then Selection Action (Choose JavaScript).


Regards,
Tariq Dar.

digital rebel
Participating Frequently
October 31, 2016

Thanks!

How do I get into "Prepare Form Mode?"  Under tools, there's Forms - and under that there is Create, Edit, Distribute, and More.   More contains Highlight, Clear, Import, Export, and Merge Data Files into spreadsheet.

Tariq DarCorrect answer
Legend
November 1, 2016

Digitalrebel,

I assume you are using Acrobat DC, yes you can use Forms> Edit. Rest of steps are same ...

Regards,
Tariq Dar.