Can you pass a token value in the End URL ?

More
5 years 2 months ago - 5 years 2 months ago #80819 by guelphpeter
guelphpeter created the topic: Can you pass a token value in the End URL ?
Hi everyone,

I would like to pass the USESLEFT token table value in the End URL of my survey.
I'm wondering if this is possible and if anyone can give me a sample URL for the End URL field.

I've tried several variations on: http://www.uoguelph.ca?passvar={USESLEFT}
but have had no success. What I'm trying to get is something like what's below, when the USESLEFT value is, for example, 207:

http://www.uoguelph.ca?passvar=207

I'm running LimeSurvey version 1.91+ Build 11804

Any suggestions would be most appreciated.

Thanks in advance,
Peter
Last Edit: 5 years 2 months ago by guelphpeter. Reason: Sorry I forgot to add the LS version

Please Log in to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #80836 by DenisChenu
DenisChenu replied the topic: Can you pass a token value in the End URL ?
Did your survey is set to anonymous ? If yes, you can use token information in the survey.

guelphpeter wrote: I'm running LimeSurvey version 1.91+ Build 11804

I'm not sure it can work but, you can try something like that:

Add a question short text (number 412), and in the question text:
<script>
$(document).ready(function(){
$("#question412").hide();
$("#question412 input.text").val("{USELEFT}");
});
</script>
After you can use SGQA in endurl

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 5 years 2 months ago by DenisChenu.

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now