New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

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

Activating buttons

From: Acrobat X: Creating Forms

Video: Activating buttons

Let's take a look at some of the most commonly used button actions, Execute a menu item. In this case, the menu item is File>Print. Go to a page view, in this case it takes you to the second page of this document, and there's another button here that takes us back to page one. Open a file, in this case it opens another PDF, but it can be used to open any file type, except an executable. It can't launch an application. You can't hook that button up to let's say the Illustrator application or Microsoft Word application, you hook it to a document like a Word file or an Illustrator file, and then the system of course opens the appropriate application.

Activating buttons

Let's take a look at some of the most commonly used button actions, Execute a menu item. In this case, the menu item is File>Print. Go to a page view, in this case it takes you to the second page of this document, and there's another button here that takes us back to page one. Open a file, in this case it opens another PDF, but it can be used to open any file type, except an executable. It can't launch an application. You can't hook that button up to let's say the Illustrator application or Microsoft Word application, you hook it to a document like a Word file or an Illustrator file, and then the system of course opens the appropriate application.

Open a web link. There is a little screen that shows up that tries to intercept you. It's to keep bad things from happening. Let's say we are trying to connect to lynda. com, which is of course, a really good idea. You can tell it to remember this action for that particular site for all PDF documents, which will make it easier in the future, or if it was a URL that you didn't want to go to, of course, you could click Block. If I want to import form data, for instance, if I want to pre-populate a number of forms with commonly used data like my Name, my Address, my Phone Number and so forth, I can store that data as what's called an FDF file, Forms Data Format file and then invoke it with this button.

If I want to clean up the form, I can press Reset Form. If I want to submit this form by email, it gives me the option to choose my Desktop Email Application or Internet Email, and whichever I want to choose. So all these actions have been assigned to these buttons when these buttons were created. Let's see how we do that. I'll get my Select Object Tool and we will look at this first one, Execute a menu item. In the Actions tab you choose a Trigger and then you choose the Action that that trigger sets off. The trigger is what happens with the mouse.

Mouse Up, most common trigger, it's when you click, let go of your mouse button. Mouse Down is as the mouse button bottoms out. That might seem a little early to some folks that might catch people by surprise. There are times when it's appropriate, but Mouse Up is the most common trigger. Mouse Enter and Exit, if you think of the button as sort of a hotspot area, Mouse Enter is as your cursor enters the area of the button, Mouse Exit is as you roll out of the area of the button. On Focus and On Blur, you may never use this, but here is what they mean.

If you are tabbing through a form, from field to field to field, a button field is a field as well. So if you hit Tab and you land on a button, that's the On Focus moment. If you hit a Tab again and you jump off the button, that's the On Blur moment. Execute a menu item is the action that's been applied. Let's see how we add an action. I am going to Delete this. Don't worry that it keeps executed menu item populating that Select Action field, that's just the default, it's at the top of the list. We have to sort of ignore it. So I am going to choose Mouse Up and then for my Action, maybe I'll say Open a web link.

So when I choose that, you have to remember not to hit Close, you actually haven't done the job yet. You have to hit this Add button and here is why? You can actually have multiple actions attached to a single mouse click. You could set a bunch of stuff in motion. When I click Add it says, well, what's the URL? I am going to send everybody to lynda.com. When I click OK, you can see that that's been added, and when I close now it no longer executes a menu item, now it sends somebody to a URL. But now you can see it when you test it.

Always test your buttons, make sure that they do what you want. If you're asking it to open a file, make sure that the directory path to that file is still intact, otherwise, you are going to surprise your end user. But this gives you an idea of the power of buttons. They really are the engines in forms, they make stuff happen.

Show transcript

This video is part of

Image for Acrobat X: Creating Forms
Acrobat X: Creating Forms

38 video lessons · 15456 viewers

Claudia McCue
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

Are you sure you want to delete this note?

No

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.