Join Anne-Marie Concepción for an in-depth discussion in this video Creating buttons that trigger actions, part of Creating Fixed-Layout EPUBs with InDesign CC.
I have FlyAway brochure opened in iBooks, and notice that when I'm over the FlyAway masked head, my cursor looks normal. But when I get over any other part of this document, it turns into a pointing finger which tells me that I can tap here or click here and go somewhere. Of course, on an iPad or a Kobo I would just start tapping away and seeing what happened. If I tapped here, it brings me to the Sky Mall section. If I tap up here, I can jump back to the cover. If I tap on the gallery, I can see little miniatures of castles, and if I tap one of these miniature images, it will bring me to the full page image.
All this fun stuff is done with buttons, buttons in InDesign so let's take a look at that. I'm going to jump back to InDesign and here's that same FlyAway document open in normal view in InDesign. When I hover over a button, you can see that it highlights and it gets this heavy dashed outline. It's colored red only because it happens to be on the layer with red as the default color. But it's the heavy dashed outline and the little icon of a finger pointing at a button at the bottom right tells me that this is actually the button.
To see what this button does, we have to open up the buttons and forms panel. Which is part of my custom workspace here, Buttons and Forms, or if you don't see it in your dock, go to the Window menu, go to Interactive, and choose Buttons and Forms. Now the form elements that are part of this panel do not apply to fixed layout ePub, only the button stuff. And when I select this button, you can see that what this button does is there is an event that when a person taps it or releases their mouse button that there is an action called Go To Destination.
And the destination is in this document, I have a place called Sky Mall. And there are lots of different destinations saved with this document. I could have that button go to any one of these other destinations. There are lots of different actions that a button can have other than go to destination. If you look under the actions drop down menu, Go To Destination is one of only many different actions. I'm not going to be able to cover all these actions at all or everything the buttons can do in this video. Let me jump back to Chrome to remind you that I do have a playlist of all of the titles at lynda.com that do cover interactivity in InDesign.
So make sure and go there and watch those, there's chapters in there that probably spend like five different videos just talking about buttons. Let's talk right now, though, about creating our own buttons and how to do a simple go to destination. I'm going to jump over to button tests. This is in your exercise file but you can create any kind of document that you want just to test. And I threw in a bunch of pages, six pages and each one simply has the page number. There is a page here that's colored blue as well. The idea being that we want to create a button that goes to page four.
Here I've already selected this frame and turned it into a button. Let me back up a little bit. How do you make a button? It's really difficult. Select it with the selection tool. Open the Buttons and Forms panel and click the bottom icon, convert to button. The end. Anything that you can select with your selection tool can be a button. That means text, live text can't be a button, but the frame that it's in can be a button. So can an image, so can a group. A button has a heavy dashed outline and it has the icon of the element below it.
This one's kind of hard to see. And the next thing that you do after you create the button is you tell it what to do, what is the action. So for this button, we wanted to go to the Blue Page in the document. We want it to go to a destination. Go over here in Buttons and Forms, I'm going to give it a name, Blue Button. The event is that release or tap, that's usually the one you're going to choose almost all the time. And then we have to add an action. Out of all these actions. And we're just going to add Go To Destination.
Then it wants to know what destination do you want? We don't have the destination for the blue page yet. That's the other thing you need to do when you're doing a Go To Destination button. If you have to remember to make your destination first. There's no automatic way to do it. Maybe there's a script out there. I don't know. You make the destination in a different panel you make it in the hyperlinks panel. Open up the hyperlinks panel, go to the hyperlinks menu, choose new hyperlink destination. And here's where you create it so I'm going to create one called Blue Page and I believe that was page four, it would automatically be selected if I was on page four when I created this.
And then just click okay, now you can go through your document and create a page destination for every single page just go one page at a time, it's just some up front work that you need to do. Now, with this blue button selected and I go back to Buttons and Forms, under Destination I have blue page. That's about it. Now let's test it. We'll open up the ePub interactivity panel. Make sure the entire document is selected because I'm going to have to jump from one page to another and then tell InDesign to render it. If it was a complicated document we'd get a little spinning beach ball but this is a simple one.
And let's test it, yay, it worked perfectly. Just one more thing, you don't have to drag out your own buttons. If you want to actually create button buttons as opposed to using text frames or image as buttons. You can use any of the sample buttons that come with InDesign. Now it's kind of hidden. You have to open up the Buttons and Forms panel. And in the Buttons and Forms panel menu, choose Sample Buttons and Forms. Kind of neat that it comes with a whole bunch of sample buttons and form objects. We're going to bypass the form objects, but down here.
You can see we got a bunch of buttons and you drag them out, like I'll just drag this out. And it's a really nice looking thing. You can scale it. I'm holding down Cmd + Shift or Ctrl + Shift to make a really big button. We can see the icon. And if you look at the buttons in Forms panel, you'll see it's already been converted to a button. It has just a generic name that you can rename. And it has an action assigned to Go to Page. But of course, you can change this. You can just delete that action with, by clicking that little minus symbol and then adding your own action if you wanted to use this to go to destination.
- Examining files inside a fixed-layout EPUB
- Checking fonts for EPUB readiness
- Working with Typekit fonts
- Creating and optimizing images
- Creating a navigational TOC
- Adding hyperlinks and cross-references
- Animating objects
- Creating buttons
- Adding video and sound
- Using the new EPUB Interactivity Preview panel
- Exporting fixed-layout EPUBs
- Testing and validating EPUBs
- Editing EPUBs