Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3556 Weergaven

Dear all ,

i want to add the priority name in email template and this field is selection field , when i type

priority : ${object.priority} ---> it show in the email only number of selection " 1 "

but i need priority name : highest or high or normal.

how can i get that from mail template ?

Avatar
Annuleer
Beste antwoord

There is no direct approach to this, but can be achieved in a round about manner.

%if object.priority==1:
       Highest
%elif object.priority==2:
       High
%elif object.priority==3:
       Normal
%else:
      Something here
%endif

Avatar
Annuleer
Auteur

thanks for your reply , could you tell me how can i write condition in email template? i mean the syntaxfor that . the priority is ${object.priority}

this code works in email template i.e. %if then %endif is the standard way of checking a condition at email template.