- Posts: 409
- Thank you received: 34
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to Use Assessment Score to present link to restart survey?
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
5 years 1 week ago #183191
by blocka
How to Use Assessment Score to present link to restart survey? was created by blocka
I have a "quiz" type survey, where at the end of the survey, if the participant scores less than a certain value on the assessment score, I'd like to present them with a link to restart the survey from scratch (as a 2nd response).
I gather adding &NEWTEST to the end URL helps with this... I'm looking for what I would write in the end message to evaluate the assessment score and present the survey link to only those who scored under my threshold.
I'm thinking I should be able to do something like:
{IF(ASSESSMENT_CURRENT_TOTAL) < 80,"Please <a href="
limesurvey.com/index.php/123123?lang=en&...yMDh4bieDw3l&NEWTEST ">click here to take the test again.","")}
Although obviously the above is wrong!
Any suggestions how to accomplish this?
I gather adding &NEWTEST to the end URL helps with this... I'm looking for what I would write in the end message to evaluate the assessment score and present the survey link to only those who scored under my threshold.
I'm thinking I should be able to do something like:
{IF(ASSESSMENT_CURRENT_TOTAL) < 80,"Please <a href="
limesurvey.com/index.php/123123?lang=en&...yMDh4bieDw3l&NEWTEST ">click here to take the test again.","")}
Although obviously the above is wrong!
Any suggestions how to accomplish this?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
5 years 1 week ago #183193
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic How to Use Assessment Score to present link to restart survey?
Hi, I use the following to "link back" to the same survey by:
question type equation "eqURL"
{if(ASSESSMENT_CURRENT_TOTAL lt 80," www.example.com/survey/index.php/ [same surveyID]?newtest=Y","")}
and in the end-url there is just {eqURL}
Joffm
question type equation "eqURL"
{if(ASSESSMENT_CURRENT_TOTAL lt 80," www.example.com/survey/index.php/ [same surveyID]?newtest=Y","")}
and in the end-url there is just {eqURL}
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 409
- Thank you received: 34
5 years 1 week ago #183194
by blocka
Replied by blocka on topic How to Use Assessment Score to present link to restart survey?
Thanks for the assistance... And since I need to pass the participants token, do I write it like this:
{if(assessment_CURRENT_TOTAL lt 80," www.example.com/survey/index.php/ [same surveyID]?token={TOKEN:TOKEN}&newtest=Y","")}
Or how do I include the participants token in the URL? Pretty sure what I've just suggested won't parse the token into the URL...
Or can I put this in the end URL:
{eqURL}&token={TOKEN:TOKEN}
???
{if(assessment_CURRENT_TOTAL lt 80," www.example.com/survey/index.php/ [same surveyID]?token={TOKEN:TOKEN}&newtest=Y","")}
Or how do I include the participants token in the URL? Pretty sure what I've just suggested won't parse the token into the URL...
Or can I put this in the end URL:
{eqURL}&token={TOKEN:TOKEN}
???
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2738
5 years 1 week ago #183195
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic How to Use Assessment Score to present link to restart survey?
you can't have { } within an expression with {}.
Just TOKEN:TOKEN should work.
Just TOKEN:TOKEN should work.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 409
- Thank you received: 34
5 years 1 week ago #183197
by blocka
Replied by blocka on topic How to Use Assessment Score to present link to restart survey?
I've just realized I can put a custom message in the assessment message -- I display a Pass Message to those who score 80+, and a Try Again message for 0-79...
And in the Try Again message, I can use:
<h2>Oh Dear, you didn't quite make the score... Try again?</h2>
<a href=" mysurvey.com/index.php/783834?lang=en&token={TOKEN:TOKEN }">Yes, I'm going try the test again.
And in the Try Again message, I can use:
<h2>Oh Dear, you didn't quite make the score... Try again?</h2>
<a href=" mysurvey.com/index.php/783834?lang=en&token={TOKEN:TOKEN }">Yes, I'm going try the test again.
The topic has been locked.