Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Buttons are a key tool for creating interactive documents. One of the most useful things you can do with the button is to use it to show or hide buttons, including itself. By making self-hiding buttons, you can create something that looks like a single button that changes its appearance and changes other objects in your document. Let's see how it's done. So here I have a simple document with two sets of paintings. Set 1 at the top and Set 2 beneath, and what I want to do is create a button that I can click on to show Set 1 and then when Set 1 is displayed the button changes, so it says Show Set 2.
And then if I click on it, it shows Set 2. I can't actually do this with one button, but I can create the same effect, nonetheless, just with two buttons in the same spot on the page. Each button will control the visibility of the art and itself. So to do this, we need to make buttons out of everything we want to show and hide. So I'll select the first group of art, go to my Buttons panel and make it a button. I'll call it Set 1, and I'll select Hidden Until Triggered. I'll do the same for the second set.
Make it a button, call this one Set 2 and Hidden Until Triggered, then I'll select the text frame, I'll copy it to my clipboard, and now with it still selected in the layout, I'll make it a button. I'll call this button set 1 trigger. Now I'll choose Edit > Paste in Place, so I paste that other copy of the text frame I just copied to my clipboard and I'll double-click to change the text, so it says Show Set 2. I'll press Escape to select the frame and I'll make it a button and call it set 2 trigger, and I'll set this one to be Hidden Until Triggered.
Now I'll Command+Click or Ctrl+Click to select the set 1 trigger button that's underneath the set 2 trigger. So I can see I have the right one selected up here, and I'll assign some Actions. I'll choose Show/Hide Buttons and Forms, and so the set 1 trigger is going to show set 1, hide set 2, hide the set 1 trigger, and show the set 2 trigger. Again, I'll Command+Click or Ctrl+Click, now I have the set 2 trigger button selected for the Action Show/Hide Buttons and Forms.
The set 2 trigger is going to show set 2, hide set 1, show the set 1 trigger and hide itself. Now let's preview. So I see the Show Set 1 button, I can click on it, it hides itself, shows the set 2 trigger, and it shows the set 1 art. Now let's click again, and the second set of art is shown and now I see the set 1 trigger again. So I can keep going back and forth if I want to. Another use for something like this would be a question and answer scenario; you could have two buttons that control the visibility of the answer and themselves.
When you need to control the visibility of objects on the page with buttons, remember that a button can also hide itself. So by positioning self-hiding buttons on top of one another, you can create what looks like a single button, but it's actually multiple buttons that toggles the visibility of other objects in the layout.
Get unlimited access to all courses for just $25/month.Become a member
120 Video lessons · 58507 Viewers
119 Video lessons · 67695 Viewers
84 Video lessons · 16953 Viewers
125 Video lessons · 29848 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.