Skip to main content
Known Participant
December 22, 2022
Question

Conditional Statements in Tables

  • December 22, 2022
  • 1 reply
  • 517 views

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.

 

 

 

This topic has been closed for replies.

1 reply

Participant
February 22, 2023

Didn't see any replies on it . is there a way to accomplish this?

 

Known Participant
February 22, 2023

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.