How do I make doc text change contingent on check box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to have a text field in a document change to one of two choices based
upon whether one of two check boxes are checked or not. I have tried to use
the field codes without success.

Thanks in advance for your help.
 
Jay,

Thanks for the help, but I think I must have confused you.

I left out the fact that the form is a protected document while the link
says it is for unprotected documents.

An example of what I want to do is this:

Suppose there are 2 check boxes - one each next to the words Apple and Orange.

If the check box next to Apple is checked, I want the document to insert the
word Apple in 4 or 5 places in the document so that it becomes specific to
Apples.

If the check box next to Orange is checked, then I want the document to
insert the word Orange in same 4 or 5 places instead.

If possible, if neither box is checked, then I want the fields to blank.

I am sorry for not being more specific with my original post. I hope this
helps you. I have searched quite a bit today, but have not found anything
that seemed to match my specific need.

Thanks again for your help.

Mike
 
Hi Mike,

Yep, that's a different situation.

I'll recommend that you don't use check boxes in this case, because then you
have to use a macro to set the text elsewhere in the document, and also to
make sure both boxes aren't checked at the same time. While this is
possible, it's a complication you don't need.

Instead, use a dropdown field. This works best if the dropdown can contain
the entire text that needs to appear elsewhere, because then you don't need
a macro at all. The possible drawback is that a dropdown is limited to at
most 50 characters per item.

After you insert the dropdown, double-click it to open its Properties
dialog. Enter the items (e.g., Apple and Orange). Enter a descriptive name
in the Bookmark box (e.g., Fruit), check the box for "Calculate on exit",
and click OK.

In all the other locations, go to Insert > Reference > Cross-reference,
select Bookmark and then the name of the dropdown, and click the Insert
button.

Protect and save the document or template. Now, when you select an item in
the dropdown and tab to the next field, all the cross-references will
automatically update to show the selection.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Jay & Susanne,

Thanks for your help. I was able to use the drop-down as Jay suggested and
get my form to work.
 

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

Back
Top