Using IF Fields with FORMTEXT

G

Greg

JKC,

In addition to verifiying "calculate on exit" is checked
as Chad mentioned, you need to properly reference the
bookmark named dept. You can do this either { REF dept }
or just { dept }. That said, modify your conditional
field to:

{ IF { dept } = "HR""Janet""Fred" }


Again, all { } pairs are entered with CTRL+F9

-----Original Message-----
Hi,

I'm trying to set up a Word form which autocompletes some
questions based on answers to the first set of questions.
I think I should be able to use an IF statement to do
this, but am having problems getting this working with
Text form fields added using the forms toolbar.
I am using Word 2002 w/ XP professional.

I've searched these groups & have read the Dian Chapman
articles, but she uses VBA macros & I'm trying to avoid
this.
Here's an example (looking at the fieldsw/ curly brackets
the one's added by word or ctrl F9):
Department { FORMTEXT} - this has the bookmark Dept
assigned by editing properties.
Your contact person is {IF Dept = "HR" "Janet" "Fred" }

Do I have to label the bookmark differently because it's
using a text form field? I tried the following, but that
didn't work either!
Your contact person is {IF {FORMTEXT Dept} = "HR" "Janet" "Fred" }

I can get this to work for numerical fields but not text.
Ideally I'd also like to do this for check boxes - eg if
a YES check box is checked then a new question would pop
up.
 

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