Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2438 Vizualizări

Hello, I am setting up a mail template.


There are some fields in the form that are sometimes empty and when using the placeholder write this:


FIELD_XXX placeholder: $ {object.field_xxx.name}


Email result

FIELD_XXX = False


I want that if the field $ {object.field_xxx.name} is empty the result is, for example EMPTY


Email result

FIELD_XXX = ""


How can I program it?


Thanks guys!

Imagine profil
Abandonează
Cel mai bun răspuns

Just simply use ${(object.name or '')
Thanks

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Thanks for your quick response. I put

FIELD_XXX: ${(object.x_studio_field_xxx.name or "")}

and this worked !!!!! THANK YOU VERY MUCH FOR YOUR ANSWER!!!!!

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
sept. 23
4677
0
feb. 25
1186
5
nov. 23
8884
1
apr. 24
6365
4
sept. 22
6170