Question

NBS
GB
Last activity: 25 Sep 2025 16:00 EDT
How to populate conditional content in word document?
Hi Everyone,
We are using ‘Generate Document’ smart shape for generating document using word templates. I can see tags for referencing properties in word template, however don't see anything for conditional visibility neither using when rule nor expression.
Please note that we have tried below tags, but it didn’t work. Any help will be appreciated!
1) <pega:when name="whenrule"> text </pega:when>
2) <pega:when <pegaref config={"name":".pyID","type":"P"}> == "Value"> text </pega:when>
Pega version = Pega infinity 24.2
Many Thanks