Conditional Statements in Tables
Copy link to clipboard
Copied
I am using Doc Gen API to output information in a grid (Word Table). However, whenever I try to use conditional statements the output fails. If I put the same statement OUTSIDE of the table it works. Has anyone come across this? Is there a fix or work around? It's quite limiting if conditional statements can't be used inside a table.
Template file (Word) - Conditional statement is in the NOTES section and again BELOW the table. Compare to the output screenshot of the results.
Output... The correct statement is shown in the test outside the table. The same statement is inside the table but does not render correctly.
Copy link to clipboard
Copied
Didn't see any replies on it . is there a way to accomplish this?
Copy link to clipboard
Copied
Hi Surendra... Nope... no replies and no workaround has surfaced yet. The only way I am able to handle this is to take those fields out of the table/break the table/or something of similar effect. Takes some effort to 'design around it' sometimes and would love to understand why the conditional statment breaks within a table.

