コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2593 ビュー

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!

アバター
破棄
最善の回答

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

アバター
破棄
著作者 最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
4
9月 23
5033
0
2月 25
1387
5
11月 23
9193
1
4月 24
6574
4
9月 22
6360