Skip to Content
Menú
This question has been flagged
2 Respostes
2331 Vistes

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!

Avatar
Descartar
Best Answer

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

Avatar
Descartar
Autor Best Answer

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!!!!!

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
de set. 23
4415
0
de febr. 25
1046
5
de nov. 23
8627
1
d’abr. 24
6260
4
de set. 22
6017