Using Form Checkbox Fields with Bookmarks

W

Webber

Hi all,

I'm currently using the Includetext function along with bookmarks and drop
down fields to determine what text is included in a document. The drop down
field has been given two options for selection - Yes or No and has been given
a bookmark name of ITS. Further in the document I have some code to retrieve
a bookmark using the Includetext function if the ITS value is set to yes.

Eg, {if {ITS} = "Yes" {INCLUDETEXT ..... }}

This is working fine.

However, I would like to change the drop down field to be a checkbox field,
for ease of use during input. I've changed the field so that it is a checkbox
but I don't know how to reference that in my IF statement. I've tried many
combinations of {ITS}.checked, {ITS.checked}, ITS.checkstate etc, but none
seem to work. If I insert the checkbox field using it's bookmark name ITS
(formula =ITS) into the document it displays 0, regardless of whether or not
the field is checked. If I do this when it is a drop down field, it shows Yes
or No depending on what is selected.

Does anyone know how I can reference a checkbox value on the form in an IF
statement?

Thanks,
Karen
 
C

Cindy M.

Hi Karen,
However, I would like to change the drop down field to be a checkbox field,
for ease of use during input. I've changed the field so that it is a checkbox
but I don't know how to reference that in my IF statement.
Unfortunately, it's not possible to determine whether a form field checkbox is
checked or unchecked from within a field.

A possible alternative, if you can use macros in your form, would be to use a
MacroButton field, rather than a checkbox. This is the approach Microsoft has
used for years for the fax templates delivered with Word.

The Macrobutton field displays an empty checkbox symbol (as in Insert/Symbol).
(Double-)clicking the field executes a macro that deletes the field and inserts
in its place an AutoText entry containing a checked checkbox symbol. And so on.

In your case, the macro would also have to take care of
unprotecting/reprotecting the document. The AutoText entry would contain the
bookmark, which could be around the macro name or around the checkbox symbol.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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