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

Interactive button to show and hide layers

New Here ,
Feb 04, 2025 Feb 04, 2025

Copy link to clipboard

Copied

Hello! I am hoping someone can help me please with interactive buttons!

 

I have created a map that has different layers for each service we have in that area  - all created in Indesign. The final aim is to have an interactive PDF. 

 

I wanted the user to be able to click a button in a key to show a layer/ particular service and unclick it to turn it off if needed. 

 

How do I do this? I have tried creating buttons but can't see an easy way to show layers as an action?

TOPICS
How to

Views

159

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

correct answers 1 Correct answer

Community Expert , Feb 05, 2025 Feb 05, 2025

There is a workaround method that uses two buttons (placed over top of each other).

1. first button shows the map, shows the hide button, hides itself.

2. then the second button hides the map, shows the first button, hides itself.

Files are attached to demonstrate

Votes

Translate

Translate
People's Champ ,
Feb 04, 2025 Feb 04, 2025

Copy link to clipboard

Copied

It should be possible. You need to create a button in InDesign, then add an action ("Show/hide buttons and forms"), and you get this:

TW_0-1738670484035.png

 

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 04, 2025 Feb 04, 2025

Copy link to clipboard

Copied

Thank you - so I created a box and made it a check box button, you can click it and it will show the layers but do you know how I get it to hide them again when the box/button is unclicked?

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
People's Champ ,
Feb 05, 2025 Feb 05, 2025

Copy link to clipboard

Copied

That's a good question. I was playing around with it a little and I'm not sure.

All I can think of (untested) is to create two superimposed checkboxes. Clicking on one causes it to hide itself and show the other, and vice versa. That way you provide different visibility configurations for each checkbox.

But I think what Adobe intended (if they intended anything at all), or, at least, the simplest option, is to create two buttons side by side. One should be labelled "Show Map" (or whatever it is you're showing), and the other "Hide Map". At that point it is easy to show and hide layers depending on which button has been clicked.

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 05, 2025 Feb 05, 2025

Copy link to clipboard

Copied

There is a workaround method that uses two buttons (placed over top of each other).

1. first button shows the map, shows the hide button, hides itself.

2. then the second button hides the map, shows the first button, hides itself.

Files are attached to demonstrate

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 05, 2025 Feb 05, 2025

Copy link to clipboard

Copied

@Jeffrey_Smith 

 

Yes, you're right:

RobertatIDTasker_1-1738781988612.png

 

Looks like "the old way" is no longer needed - or is only needed for calculations and multi choice forms.

 

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 11, 2025 Feb 11, 2025

Copy link to clipboard

Copied

LATEST

Thank you for this - that solution works perfectly for what I need.

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 05, 2025 Feb 05, 2025

Copy link to clipboard

Copied

It's be possible - but would require injecting JavaScript in Acrobat. 

 

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