Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2598 Tampilan

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
Buang
Jawaban Terbai

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

Avatar
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Sep 23
5034
0
Feb 25
1394
5
Nov 23
9196
1
Apr 24
6577
4
Sep 22
6365