About E-mail function in limesurvey.

More
7 months 3 weeks ago #162944 by tomtom
tomtom created the topic: About E-mail function in limesurvey.
Hi there,

I am exploring limesurvey function or javascript with auto e-mail to a specific person if a participant got a significant assessment result.

Case:
A group of students has participated a math assessment. One(May be more than one ..) student got full marks.

I would like to know if limesurvey can automatically email to the full mark student's subject teacher (known e-mail address) in final "thank you" page or equation page. My limesurvey system has SMTP function.

Thank you.

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #162983 by jelo
jelo replied the topic: About E-mail function in limesurvey.
What version of LimeSurvey do you use or test?
Further infos are about LS 3.0 (can be found at different places in LS 2.X too).

You can use one of the administration messages in the settings to mail results.

Basic admin notification or Detailed admin notification.
In LS 3.0 under Settings -> Email templates

The emailadress has to be a variable, which you would assign during the survey via Expression Manager.
These variables have to placed in Settings -> Notification and data management settings
If you use tokens, you might add this info (e.g. subject teacher emailadress) as attributes. That makes it a lot easier to get the individual info about every student at one place.

Expression Manager: manual.limesurvey.org/Expression_Manager

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #162985 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Hi Jelo,

Thank you for your reply. I am using Limesurvey 2.76, I can see there is a Email settings under Configurations > Setting > Global settings. Should I upgrade the system to version 3 for the auto email result function?

My designed math assessment is open to all student, no token required.

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #162986 by jelo
jelo replied the topic: About E-mail function in limesurvey.
The functionality is available in 2.76 too. The wording of the menu items differs from my description.
So no need to upgrade to LS 3. And I wouldn't recommend that.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #162989 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Hi Jelo,

Thank you! Find the function and start to apply it.
Attachments:

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #162990 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Hi, another two questions,

1. (Refer to contact.PNG)
I have create a contact form with "Multiple short text" question type, how could I get the content or any hints for different types of question for similar data extract? Because I want to use it in the email template. I know we can use radio.value to get radio question value....

2. (Refer to set_class.PNG)
I want to send notifications for different teachers. i.e. math total < 50 will email notice with result to This email address is being protected from spambots. You need JavaScript enabled to view it., math total < 70 will email notice with result to This email address is being protected from spambots. You need JavaScript enabled to view it., math total <= 100 will email notice with result to This email address is being protected from spambots. You need JavaScript enabled to view it.
Attachments:

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163005 by holch
holch replied the topic: About E-mail function in limesurvey.
1. You can access basically all answers given via the Expression Manager and also insert it this way into the email templates. Please refer to the manual about Expression Manager, because how to address the answers depends on the question type. There should also be quite a few answers regarding on how to send "reports" via email or how to create reports at the end of the survey here in the forum.

2. As far as I know, you can use equations in this email field, so you can insert some equation there. However, I would probably process this in an equation type question before, in order to not fill this field too much. In the equation you could could create something like:
{if(math>50, 'teacher2@school.com','')}
Code not tested, just an example on how to think about it. You need of cours include the ifs for the other conditions. Then you just call the result of this equation type question into the field for the email addresses. Should work, but will require some testing.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: tomtom

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163008 by tpartner
tpartner replied the topic: About E-mail function in limesurvey.
1) manual.limesurvey.org/Expression_Manager#Access_to_Variables

2) Assuming you have calculated a "total" in an equation question, use Expression Manager IF statements for the email address - manual.limesurvey.org/Expression_Manager#Conditional_Equations .

{if(total > 50, 'teacherA@edu.com', if(total > 70, 'teacherB@edu.com', 'teacherC@edu.com'))}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: tomtom

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163012 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Hi holch,

Thank you for your information.

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163013 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Great to see that variable menu!!!!! Thanks Tony

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163071 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
A little frustrated:( . I have follow holch, jelo and Tony's all solutions. But finally, I cannot extract participant's multi text answer in email. Please see my attached shots.

I have validate the email template's expressions, all works.
Attachments:

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163072 by holch
holch replied the topic: About E-mail function in limesurvey.
Afaik .shown does not exist for this question type, as "Name", "Phone", etc. are not answer options, but subquestions.

.shown would work for example with list type questions and would show the text shown for an item opposed to the question code. So in your case, if you would have a single choice question with the items "Name" and "Email" it would display "Name" and "Email" when used.

Try {case_SQ001}, this should give you the response someone has given to "Name".

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163077 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Thanks holch,

seems not work.... sorry for any inconvenience caused. May I ask you if I want to email participant's name and telephone number (will use regex validation later), is it a good way to use multi text question type?
Attachments:

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163081 by tomtom
tomtom replied the topic: About E-mail function in limesurvey.
Oh! It was my previous question problem. Thank you holch!!!

Please Log in or Create an account to join the conversation.

More
7 months 3 weeks ago #163090 by holch
holch replied the topic: About E-mail function in limesurvey.
Hmmm, don't really understand your last comment. Does it work now?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!