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
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 1 week ago #183191 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?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #183193 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 1 week ago #183194 by blocka
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}

???
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #183195 by holch
you can't have { } within an expression with {}.

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
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
5 years 1 week ago #183197 by blocka
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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose