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

show/hide hyperlink based on radio selection

New Here ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

Hi,

 

I am working with adobe acrobat pro. I have 2 radio buttons in the same group for simplicity they are yes and no radio buttons. They show 1 text field based on which one is selected. Basically, if yes is selected it will show a textbox with the next step and no will show a different one. However what I would like to do is have a link added that only shows when the "no" radio button is selected but disappears when "yes" is selected. It is only relevant to the "no" text and would cause confusion with the "yes" text. Is this possible? If so, how do I do this? I am familiar with JavaScript but far from an expert. 

 

Thank you for any help in advance.

TOPICS
JavaScript , Modern Acrobat , PDF , PDF forms

Views

124

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 ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

Use a button field for the link. Then it can be hidden and shown using the same method that is used for the text fields. 

 

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
New Here ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

Thank you. That's a great idea!

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 ,
Feb 21, 2024 Feb 21, 2024

Copy link to clipboard

Copied

LATEST

Hi,

I did an answer for a similar problem on this post:

https://community.adobe.com/t5/acrobat-discussions/dropdown-list-exporting-a-simplified-link/td-p/13...

Please have a look, that could help you.

@+

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