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

On/Off buttons for line in a chart - interactive PDF

New Here ,
Feb 08, 2024 Feb 08, 2024

I have a line chart with various coloured lines. I am trying to make the chart interactive so you can toggle on/off the vaious coloured lines. In my head this should be really simple but I am struggling.

 

I can make a button turn a line off, but not back on. I could create two sepeare buttons for every line for both on and off but that feels overkill.

 

I thought the radio button may work but in a similar way I can make it do one action, but not the second. So I can click to hide the line but not turn it back on.

 

This needs to remain as a PDF so would appreciate any help people can offer.

 

 

TOPICS
How to
218
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 ,
Feb 08, 2024 Feb 08, 2024

If it has to be a PDF my advice is to forget it. You could try it with show/hide fields but it probably won't work outside of Acrobat.

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

That was my concern unfortunately. Oh well.

Thank you

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

You would have to inject custom JavaScript - but as @BobLevine pointed out - it might not work in other readers.

 

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

I just created a test where there were two separte buttons for on and off and they turned them selves off whilst turning the other on. All worked as expected and did the job in Acrobat but tested on my phone and didnt work so I think I just need cancel this idea.

Thank you. 

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 ,
Feb 09, 2024 Feb 09, 2024
LATEST

It is an exercise in futility. You are making the correct decision.

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