I am looking for a way to use field codes to see if a Text Form Field contains a specific string, and if so, display some text.
Specifically my Text Form Field is to gather the mailing address. If the mailing address is a PO Box, then I need to display a warning to also collect the physical address.
So, I have { If {MailingAddr} = "PO Box" "Please also get the physical address" }
But, the {MailingAddr} field will contain more than just "PO Box", so I need to add some wild cards ("PO Box*") or use some sort of other evaluation to do a partial match.
Last edited by Whizbang; 08-21-2010 at 04:28 PM.
I hope you'll be able to find the solution at Word MVP's site.
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, «Born in USSR»
Vusal M Dadashev
Baku, Azerbaijan
Word does not have a function to extract parts of a field, nor does it have a "contains" comparison available to the IF function.
You'll have to redesign your approach.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks