Skip to Content
Menú
This question has been flagged
2819 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 25
2294
0
de jul. 23
2237
1
d’abr. 23
10132
1
de març 22
6082
1
de nov. 21
3171