Provide advice after all the answers

More
1 month 4 weeks ago #191417 by goolasso
Hello.
I am a very beginner of Limesurvey I just started to use it 4 hours ago.
I spent last hour searching web and this forum for the answer to my feasibility question but with no luck.
The question is:
I would like to build a questionarie where user have to answer to several questions, that can also change considering the previous question.
At the very end, after the survey finish, I would like to provide a personal report of the answers (on screen and by email) with a tailored advice considering all the questions.

For example if userA answered Y to question 1, N to question 2, Y to question 3 I'd like to produce an advice that is basically text and links.
The advice should say something like:
<< Because you answered y to q1 therefore my advice is to do [advice 1], because you answered N to q2 <and> Y to Q3 therefore therefore my advice is to do [advice 2]>>.

I have a set of predefined advices that I want to combine considering the answers.

Is this possible?

Thanks a lot!

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

LimeSurvey Partners
More
1 month 4 weeks ago #191418 by gabrieljenik
Hi,

Yes, you could accomplish that using Expression Manager on the end messages, on the last group (showing different text questions) or, as well as, using assessments.

If you would like a report, I build those for my customers, allowing them to download a pdf or word. If interested, please contact me at This email address is being protected from spambots. You need JavaScript enabled to view it.

Thanks

Cheers,
Gabriel - www.Encuesta.Biz - Authorized Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?)....[img]

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

More
1 month 4 weeks ago - 1 month 4 weeks ago #191420 by goolasso
Thanks Gabriel.
I didn't know the assessment feauture, I will try!
Last edit: 1 month 4 weeks ago by goolasso. Reason: ok

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

More
1 month 4 weeks ago #191421 by gabrieljenik
This standard feature: manual.limesurvey.org/Assessments

Cheers,
Gabriel - www.Encuesta.Biz - Authorized Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?)....[img]

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

More
1 month 4 weeks ago #191424 by holch
However, I think in your case I would NOT recommend Assessments.

The Expression Manager/script might look a little scary at the beginning but you are much more flexible in creating your "report", because the assessment feature is basically just giving "points" to certain answers and then depending on the points you are "assessed". For your described case the Expression Manager/script is a lot more flexible.

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
1 month 4 weeks ago #191427 by goolasso
Thanks a lot Holch.
Indeed I was studing assessment and I was not finding a straighforward way to use it for my purpose!
I will study Expression Manager instead.

Why are you citing also "script"?

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

More
1 month 4 weeks ago #191428 by holch

Why are you citing also "script"?

To add to the confusion... ;-)

There is currently a discussion to rename "Expression Manager" into "Expression Script" because it explains better what it actually is. It is a script language that allows you to "program" certain things (Expression). It is the same thing. I am just preparing already in case it gets renamed in the future. Then the mention of "Expression Manager" might not make sense to everyone.

Expression Manager looks scary at the beginning, but there are good explanations in the manual, especially look into "micro tayloring", which is what you mostly need.

You probably will need some time to get your head around it, but then what you are trying to do is not a simple thing. Once you have the idea, it will be probably really quick.

You can use text display questions with expressions in it to deliver your advice. Once you have started and run into specific problems, you can always come back and ask specific questions. But first you should read through the pages about Expression Manager in the manual and download the example LSS files. this will give you a very good base to write your own expressions and create your taylored report at the end of the survey.

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
1 month 2 weeks ago #191724 by goolasso
Ok, tks a lot.
Now I just finished the survey composition and I am starting developing the report.
A basic question is rising....Where do I need to write the report using EM?

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

More
1 month 2 weeks ago #191726 by Joffm
Hi,
as far as I understand you are going to display it at the end.

So the best is to create your report in the "end message".
Before you calculate whatever is to calculate by equations and in your report you use "micro-tayloring":

{if(result1==1,"My advice is that you eat an apple each day",if(result1==2,"My advice is that you eat two bananas each day","You are too healthy, please smoke at least ten cigarettes each day"))}

Here is something general, shown to all respondents.

{if(result2<100,"You got less than 100 points,"You got 100 points or more")}


Joffm

If there are some more - special - questions, you should provide your survey (only the important parts) as lss export.


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

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

More
1 month 2 weeks ago #191739 by DenisChenu

Joffm wrote: You are too healthy, please smoke at least ten cigarettes each day

:woohoo: :huh:



:laugh:

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

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

More
1 month 1 week ago #191907 by goolasso
Hi all, a quick update.
What you suggested is working quite well.
I have a new problem.
I am using "Type: Long Free Text". When I put within the if statement a long text, like 10/20 rows with new lines and particular char like ":" or "-" or just new line it gives me a lot of errors and it is not working.
Moreover within a long text sometime it seems also to have unexpected result, sometime the same text gives me errors sometimes not.
It will be better to edit the text using the source editor?

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

More
1 month 1 week ago #191908 by holch
Sorry, it is not quite clear what you are trying to do. What do you use "long free text" for?

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
1 month 1 week ago #191909 by goolasso
As suggested above I am using "long free text" in order to provide a final report using Expression Manager to build the report. Basically there will be several if and nested if and within some of them there will be a long text, something like 10/20 rows with bullets, colon, and new line

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

More
1 month 1 week ago #191910 by holch
No one suggested that you should use "long free text" questions, as far as I recall. Usually I would use "text display" questions to provide the "report".

So I am still not sure how and where you are using long free text questions for this.

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: DenisChenu

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

More
1 month 1 week ago - 1 month 1 week ago #191955 by goolasso
Ok. Now I am using Text Display but I have the same error result as the following picture.


I would like to just print a text like this:

*************
Considering that {PC0.shown} has not yet done an assessment you can suggest that I can help doing one. In particular Gxx can be helpful in such scenario: Gxx can provide professional services leveraging the offering Cmod.
With integrated tools and patterns, I co-creates with you to deliver:
- ModB - DT approach for discovery and prioritization of the and execution plan
- Optimum modernization approach derived from t6 – re, rep, repo.
You can find more details of this here: mix.net/cams/jtc/cm
The tools that G usually use to do such work is BC. You can find more info on it here: mix.com/pub/c-a/c-i/bc
These are some P-P of out approach: x, y, z.
And this ssl examples that you can use with you: x,y,z.


*************
Attachments:
Last edit: 1 month 1 week ago by goolasso.

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!