Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Send answers by mail to the user

  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108022 by tennob
Send answers by mail to the user was created by tennob
Hi everyone,

I'm trying to send back to the users some of the answers he filled.

Then I've 2 requests.

1. For example can I send in the confirmation e-mail something like " you answered to the question {Qdispo} xxxx. thank you".
{Qdispo} is a multiple choice question

2. Can I do it if I'm using Quota and evaluation? That would be best for me.
For example, If the user answers SQ001 to {Qdispo} he has 1 point, if it's SQ002 he has 2 points and then I can run an evaluation.
Can I send to the user by e-mail the result of the evaluation?


Thank you very much,

regards
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago #108034 by tpartner
Replied by tpartner on topic Send answers by mail to the user
You can use Expression Manager to calculate "scores" and pipe text into the emails.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108044 by tennob
Replied by tennob on topic Send answers by mail to the user
Thanks tpartner !

Ok I get it for "socres" but I don't know how to send it by mail, taht's the point :)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago #108046 by tpartner
Replied by tpartner on topic Send answers by mail to the user

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108120 by tennob
Replied by tennob on topic Send answers by mail to the user
Hi, I'm back ;)

I have some issues.. yet not resolved!

1. For example, in the Qdispo question (radio buttons) I test values and try to give back a message related to the value.

For example if i click on the value "8" i try to get back the message "ok!"

Then I created a new group, and a new equation (called "SCORE").

Then my "SCORE" code is the following :

Code:
{if (Qdispo =8,'ok!')}
As I saw in the LS manual. I also tried with Qdispo ==8 or Qdispo > 1

that always give me the code back without analysis of it.
Tried also others codes, like strlen, and it worked.

I'm a bit lost ..

2.
Thank you for your help, that's so important for all of us.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago - 9 years 10 months ago #108123 by tpartner
Replied by tpartner on topic Send answers by mail to the user
Assuming the question code is "Qdispo " and the answer code is 8, the equation should be:

Code:
{if(Qdispo == 8, 'ok!', '')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 10 months ago by tpartner.
The following user(s) said Thank You: tennob
The topic has been locked.
  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago - 9 years 10 months ago #108155 by tennob
Replied by tennob on topic Send answers by mail to the user
Thanks,
that works perfectly.

My last wish would be formatting text.
For example :
Code:
{if(Qdispo ==8,'I'd like to format this text
with a return char for example','')}

do you think it would be possible?
If not, how can I make my text formatted?

many thanks again
Last edit: 9 years 10 months ago by tennob.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago #108177 by tpartner
Replied by tpartner on topic Send answers by mail to the user
I'm sorry, I don't understand the question.

How do you want to format the text.


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108190 by tennob
Replied by tennob on topic Send answers by mail to the user
Sorry that wasn't that clear.

Actually and finally I want to use this trick to send e-mail confirmation. I want to send in my mail confirmation postal adresses.

If my text is formatted like this : "Mr. John Peter 2 farm street Wisconsin Tel : xx.xx.xx email : xxx@xxx.com"
That's not very exciting to be read ! And sadly, that's the only way I can pipe it into the question or the confirmation e-mail.

I want to format the text with "return char" for example :
" Mr. John Peter
2 farm street
Wisconsin
Tel : xx.xx.xx
email : xxx@xxx.com "

But how can I put that information (return char) in the code we saw before? I tried to make a "classical" return with "enter key" but the text is still plane and not formatted.

I don't really know what kind of programming language is written, is that JSON of JS? I think there are options to indicate LS that the text to pipe if the condition is there has to be shown with returns.

Hope that i was clearer than before !

many thanks,
The topic has been locked.
  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108331 by tennob
Replied by tennob on topic Send answers by mail to the user
Hi,

after a few days trying to get rid of this issue i'm not a dev :(

Well, first : is my question understandable ? actually I just want to display text not in a single line

Thank you so much
The topic has been locked.
More
9 years 10 months ago #108334 by Ben_V
Replied by Ben_V on topic Send answers by mail to the user
Maybe try to compose your text with several equations:
{if(Qdispo ==8,'Mr. John Peter','')} (<br />)
{if(Qdispo ==8,'2 farm street','')}
etc...

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: tennob
The topic has been locked.
  • tennob
  • tennob's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #108337 by tennob
Replied by tennob on topic Send answers by mail to the user
Thanks,

actually that works well !
I'm not quite sure i'll be the developper of the year but that works !

Thanks !
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose