Skip to Content
Menu
This question has been flagged
2 Replies
2603 Rodiniai

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!

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius 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!!!!!

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
rugs. 23
5049
0
vas. 25
1395
5
lapkr. 23
9208
1
bal. 24
6581
4
rugs. 22
6370