Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2614 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
set 23
5083
0
feb 25
1401
5
nov 23
9241
1
apr 24
6595
4
set 22
6394