How to Use Assessment Score to present link to restart survey?

More
2 months 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.</a>","")}

Although obviously the above is wrong!

Any suggestions how to accomplish this?

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

LimeSurvey Partners
More
2 months 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

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

More
2 months 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}

???

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

More
2 months 1 week ago #183195 by holch
you can't have { } within an expression with {}.

Just TOKEN:TOKEN should work.

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
2 months 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.</a>

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!