setting formcheckbox values during mailmerge

I have a mail merge template which contains formcheckboxes.  I want to be able to alter the checked/unchecked value of these checkboxes depending on the value of a merge field.

I see the formchecbox has a bookmark propery and I have one called check1, its this value I've been trying to manipulate.  But I can't get the right syntax.

I've been trying with something like this, but can't get it to work:

{IF {MERGEFIELD ISTRUE} = "VALID" {SET Check1 "TRUE"} {SET Check1 "FALSE"}}

Am I close? Is there a better way to get the value of a checkbox to update on the fly?

thanks.
 
jozniffAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joanne M. OrzechManager, Document Services CenterCommented:
Try this...although I'm not sure....worth a shot
{IF {MERGEFIELD ISTRUE} = "VALID" "{SET Check1 "TRUE"}" "{SET Check1 "FALSE"}"}

I use this code with VB:
ActiveDocument.FormFields("Check1").CheckBox.Value = True
0
Joanne M. OrzechManager, Document Services CenterCommented:
Are you using Excel as the data source?
0
jozniffAuthor Commented:
Yes,  I am using excel as the data source, however this is being generated on demand from an Oracle database so I would not be able to change the format or use macros etc on the excel side. Adding extra speech marks (") around the true false section does not work for me either.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Joanne M. OrzechManager, Document Services CenterCommented:
Do you have to use formfield checkboxes?  If not, you could just use Insert, Symbol and find one for a plain box and one for a checked box (under WingDings usually).

{IF {MERGEFIELD ISTRUE} = "VALID" "PlainBoxSymbolGoesHere" "CheckedBoxSymbolGoesHere"}"}

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jozniffAuthor Commented:
Thanks.  the wingding workaround works well, but I'd still like to find a way of doing it with the bookmarks, so that users can use the resultant merged doc as a form still.  
0
Joanne M. OrzechManager, Document Services CenterCommented:
Well jozniff - you could try using the INCLUDETEXT field with a document with a blank formfield box and a document with a checked formfield box.  Other than that, I don't know off the top of my head.

I could try to play around with it at home and get back to you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.