Conditional content in transactional message template | Community
Skip to main content
Level 2
May 8, 2024
Solved

Conditional content in transactional message template

  • May 8, 2024
  • 1 reply
  • 665 views

Hi all, 

I need help about a conditional content in transactional message template.

 

I need to show different text when a field is empty or full.

 

I tried different condition (IS EMPTY, IS NULL, == 0) but noone worked.

 

If I write:

didn't work. If I put a space between "" and in the field there is a space, it works. 

 

How can I specified the condition "the field is empty"??

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Heku_

Hello @elisabettapi. As this is javascript, not SQL, you should try with rtEvent.ctx.@attribute == undefined.

Hope this helps!

1 reply

Heku_
Heku_Accepted solution
Level 5
May 8, 2024

Hello @elisabettapi. As this is javascript, not SQL, you should try with rtEvent.ctx.@attribute == undefined.

Hope this helps!