if field not working with text

I have created a field called month, default text is November.

I then enter the following:

IF month = November Yes Null

I have also tried

IF month = "November" Yes Null

The result is null.

This worked fine in word 2003 (just been updated to word 2013)

The if statement also works for me if I use numbers but never when I use text.

Any ideas?

Answer
Answer

Try:

{IF{Month}= "November" Yes Null}

or, for a dropdown formfield:

{IF{REF Month}= "November" Yes Null}

For clarity: this won't work with content controls.

Note: The field brace pairs (i.e. '{ }') for the above examples are created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via any of the standard Word dialogues.

Cheers
Paul Edstein
(Fmr MS MVP - Word)

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated November 13, 2022 Views 203 Applies to: