Check boxes and Bookmarks

A

Andy

Hi all,

I'm afraid i may be being a bit dense here but i am trying to create a
form that has a series of check boxes included.
What i would like to happen is if a user checks one box it will lead
them off to one part of the document (i am assuming it is best to
identify it using bookmarks) and if they check another box it leads
them off to another part of the document.

I have managed to do this in Acrobat using links, but i cannot seem to
be able to do it in Word. Do i need to create a macro and apply it to
the checkbox? if so, how do i go about it?

Many thanks in advance for any assistance,

Andy
 
D

Daiya Mitchell

I guess you could set the checkbox as the display for the hyperlink, though
I'm not sure the box would actually get checked.

See this page on creating clickable links in protected forms--I think that's
what you are trying to do.
http://word.mvps.org/faqs/tblsfldsfms/HLinksInForms.htm
(hit refresh a few times in Safari, or use a different browser)

Me, I would go the "if you checked Yes, click here" vs "if you checked No,
click there" route, but I'm lazy.

It's also possible that this page might help you out:
http://gregmaxey.mvps.org/Toggle_Data_Display.htm

I've never experimented with any of these techniques myself, but maybe some
others have.
 
M

Matt Elggren [MSFT]

Hi Andy,

You definitely are on the right track here but I'm not sure we'll be able to
repro the exact result you get in Acrobat. The catch is that macros are run
based upon entering or exiting a field rather than enterering data to the
field. So you can use the following steps to create a scenario similar to
what you describe but realize that if a user tabs into the check box form
field via the keyboard, the macro will run and redirect to the bookmark
before they get a chance to select the box . If they select the box with the
mouse it work as expected. The simplest way I know to accomplish what
your're trying to do here is to use Marcro Record to create a macro that
moves the insertion point to a bookmark, like so:

1. Create your form fields, giving them unique bookmark names via the "Form
Field Options" dialog (each form field is a bookmark identified by the form
field bookmark name)

2. From the main menu select Tools, Macro, Record New Macro...

3. In the Recod Macro dialog, give you macro a unique name, set "Store macro
in:" to the name of your document, and click OK

4. Now select Edit, Go To..

5. In the Go To dialog select "Bookmark", select the form field name from
the drop down, click Go To

6. Close the Go To dialog and stop the macro recording by clicking the stop
button in the Macro record toolbar

7. Now double-click your check box to bring up the "Check Box Form Field
Options" dialog

8. In the "Run maco on" section, select your macro from the "Entry:"
drop-down, the close the dialog by selecting OK

Now when you protect the form and select the check box with you mouse,
you'll see the box change to "checked" and the insertion point will jump to
the appropriate form field as directed by the macro.

Let me know what results you get...and if you or anyone else on theis list
knows of a better solution.

mel


--
Matt Elggren, aka "mel"
MacWord Test

Please do not send e-mail directly to this alias.
This alias is for newsgroup purposes only.

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top