Link to home
Start Free TrialLog in
Avatar of Laurence Martin
Laurence MartinFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Conditional Text in Word with XML data source

I have a potential client that is using an ERP system called Priority which produces various documents such as invoices using a Word template with mapped XML fields.

Sometimes they will produce a single document, sometimes it is a batch.

They want the document to say different things depending on the data.

If this were a Word mail merge I would use a If..Then..Else field in the mail merge, but they tell me that isn't working.  I guess that is because they aren't running a Word merge.

Can you use IF fields in this XML situation, if so how?
Avatar of John Korchok
John Korchok
Flag of United States of America image

The answer will depend on how Priority operates. Here's their contact page, where you can request a demo and ask questions: Priority Contact Page
Avatar of Laurence Martin


OK, let's forget about Priority for a moment.  I'd like to learn more about IF fields.

How do they work when it's not a mailmerge?

The Microsoft website just says {If order>100 "truetext" "falsetext"}.  What is "Order"? A bookmark?

If I want to reference a Content Control, how do I do that?
Avatar of John Korchok
John Korchok
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks John,

I thought that Content Controls would be difficult.

My question was all about the field code, without using VBA,

We are waiting to see what Priority say.

I hope you are staying safe and well.