Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2386 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
wrz 23
4524
0
lut 25
1129
5
lis 23
8732
1
kwi 24
6313
4
wrz 22
6080