Skip to Content
मेन्यू
This question has been flagged
2840 Views

Hi!


I have some issue giving back the results of the survey to the lead in the e-mail after the survey is taken. I put this in the e-mail template:

% if object.survey_id and object.survey_input_id and object.survey_id.scoring_type != 'no_scoring' and object.survey_id.scoring_success_min:

Score ${object.survey_input_id.scoring_percentage}%

% if object.survey_input_id.scoring_success:


The code in bold is printed in the e-mail and visible for the lead.. what can be the problem?
I get the score result.

The goal is to get a score and when it is lower than a certain number -> show this text in email,

when it is higher -> show another text.

The code is used by a colleague (who quitted), but i'm newbie and i'd like to learn how this works. In the e-mail template I also find these codes: 

% else:

% endif % endif


Can someone help me out and explain to me how i should build the e-mail template with my goal in mind?


Many thanks in advance!



 

Avatar
Discard
Related Posts Replies Views Activity
2
जून 25
2323
0
जुल॰ 23
2254
1
अप्रैल 23
10142
1
मार्च 22
6088
1
नव॰ 21
3184