Hi,
I have an issue with some dynamic content and I hope anyone can help me out.
I use the following statement in an email, showing only text from a field on a lead when this lead matches specific criteria
{{#each contact.lead_contact_parentcontactid}}
{{#if (eq this.xx_xxlevelid 'aaaaaa-cccc-eeee-8f8e-00000000')}}
{{#if (ne this.xx_nurture 123456789)}}
Your interest is also in:
{{this.aa_fieldname}}
{{/if}}
{{/if}}
{{/each}}
But when having more leads with matching that specific criteria it is also showing "Your interest is also in:" more than once. How can I obtain that this specific test is only showing once when leads find that match that criteria?
Thanks in advance!
Thank you Nya!
Hi Eline,
It cannot be done unfortunately since you need to iterate over each lead, and there is no such judgement in this expression.
Hi Nya,
Yes that is a solution, but I only want to display the item when there is something to show. When there is no lead matching the criteria, the text should not be there.
Best regards,
Eline
Hi Eline,
Please try to move the "Your interest is also in:" out of the for each loop.
It would be something like:
Your interest is also in:
{{#each contact.lead_contact_parentcontactid}}
...
So that it won't be repeatedly displayed.
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156