Expand my Community achievements bar.

SOLVED

Conditional content in transactional message template

Avatar

Level 2

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:

ElisabettaPi_0-1715154311404.png

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 7

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

Hope this helps!

View solution in original post

1 Reply

Avatar

Correct answer by
Level 7

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

Hope this helps!