How to show a secondary field if first field is empty

Hi Support,

On the attached, I need to replace the @ProjIdInter field under the Description with the @Name field, if the @ProjIdInter field is empty.

I tried modifying the expression in a 2022 post on the forum but it’s not working.

Thank you.
2004-FreeTextInvoice.Report (43).ddsp (193.8 KB)
2004FTI.docx (67.8 KB)

Hi there @Nicky,

The easiest way to achieve to display a different field under a certain condition is to use an iif() function.

The expression in your case should look like this.

iif(@ProjIdInter = '', @Name, @ProjIdInter)

I have modified the template for you as well. You can check the solution there.

2004FTI (Edited by Docentric).docx (65.9 KB)

1 Like