Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Setting rollover states

From: InDesign Insider Training: Interactive PDFs

Video: Setting rollover states

One of the most commonly requested interactive behaviors I hear people asking for is, how do I make an object appear or disappear on the page? For example, I have three pieces of art in this document: one on my page, and then a couple out here on the Paste board. I'll just drag those on. Now, you can see that these are actually groups of objects. I've grouped the image with a caption, so, it'll act as a single object. But I only want one of these to be visible at a time. The other pieces of art should be hidden until I click on one of these buttons along the left edge here. Now, this seems impossible to do in InDesign until you learn one really simple trick.

Setting rollover states

One of the most commonly requested interactive behaviors I hear people asking for is, how do I make an object appear or disappear on the page? For example, I have three pieces of art in this document: one on my page, and then a couple out here on the Paste board. I'll just drag those on. Now, you can see that these are actually groups of objects. I've grouped the image with a caption, so, it'll act as a single object. But I only want one of these to be visible at a time. The other pieces of art should be hidden until I click on one of these buttons along the left edge here. Now, this seems impossible to do in InDesign until you learn one really simple trick.

You need to turn all of these objects into buttons. InDesign can only hide and show another button. So, I'm going to select all of these objects. I'll just drag a marquee with a Selection tool over all of these text frames and these groups, then I'll head over to my Buttons and Forms panel, and I'll click on the Mega Button button. Now, each one of those objects, the groups and those text frames are a button. I'll click out here on the Pasteboard to deselect, and then I'll click on one of these buttons up here. Now, this button doesn't have to do anything.

No event, no action, but I do need to give it a name. I'm going to come up to the Name field, select that, and delete that text and instead I'll call it Blue Cliffs. That's the name of this piece of art. Now, I'll click on this one over here and I'll call it Apple Wood. And then finally, the third group, I'm going to call that button Vines. As you'll see in a minute, it's really important that you name these buttons carefully so that you can identify them. And now that we've named them, let's go ahead and setup these buttons over here. I'm going to call this first one Show Vines.

And here's the action I'm going to apply to it. On release or tap, I want the action to be Show Hide Buttons and Forms. And as soon as I select that, you'll see that the Buttons and Forms panel expands, and it gives me a list right here in the middle of all the buttons on my page. The trick to showing or hiding buttons on the page is to click on this left column. So, for example, I want to show vines, so, I'm going to click once on that X. You'll see that the X turned into a little eye ball, that means show this button.

If I click twice on the Apple wood, first, I get the eye ball then I get an eyeball with a line through it. That means hide this object. I'm going to do the same thing to Blue cliffs. So, now, when I click on the Show Vines button, it's going to show the vines artwork, and it's going to hide Apple wood and Blue cliffs. Now, let's do the other two. I'll choose Apple wood, I'll give it an action. This one is going to hide the Vines and hide Blue cliffs, but definitely show Apple wood. And let's give it a more descriptive name.

And lastly, the Blue cliffs. Show Blue cliffs artwork, and the action is going to be Show/Hide buttons. And this was going to show the Blue cliffs and hide the other two. Now, I need to do one more thing here, and that is to select each of these objects, and set the hidden until triggered check-box. I'll start with this first one, Blue cliffs. I'll select it, and then turn on hidden until triggered. And that way, when I open the PDF in Acrobat, it will be invisible until it's told to become visible. Let's do the same thing to this second piece of art. Make it hidden until triggered.

The third piece of art, I'm going to leave alone, because I do want that visible when I first get to that page. Now, all I need to do is drag these objects into position. I'm just going to position them by dragging them around until I get them into the right place, one on top of the other. I'll press Cmd+Shift+Return or Ctrl+Shift+Enter to open the SWF preview panel, and we're going to test out these buttons. When I click on the Apple wood button, it switches to that artwork. When I click on Blue cliffs, it switches to that. Then I'll go back to Vines, and you can see it switches to that.

So, the actions work great. Just in case you jumped right into this movie and haven't heard me say this a few times before, buttons do not work reliably in most tablet PDF readers at this time, on Android or IOS devices. So, this hide and show trick may not work on those devices.

Show transcript

This video is part of

Image for InDesign Insider Training: Interactive PDFs
InDesign Insider Training: Interactive PDFs

30 video lessons · 11826 viewers

David Blatner
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed InDesign Insider Training: Interactive PDFs.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.