Merge Fields with IF Statements

I was wondering if using IF statements for Merge fields work with the Fill Merge fields in DOCX Document connector?

Hi @henryed07,

I'm testing the scenario. Could you clarify the case or maybe even share your DOCX sample?
Do you use the If category in the field window and what is the expression?

Best regards,
Petr
Plumsail team

Hi, Yes this is what is in the document, also use nested if statements too.

Here is a snippet of the merge fields. Sample File

Hi @henryed07,

The IF condition worked in my test template but I had to click Update the filed after opening the DOCX result.

  1. This is my example:

  1. This is the simple JSON:
{
	"value": "test"
}
  1. After opening the result DOCX I need to click "Update field"

  1. To avoid clicking the Update field after opening the result, you can probably add some macros to the source document to update it automatically.

Please check out the example.

Best regards,
Petr
Plumsail team