Can you pass a token value in the End URL ?

More
5 years 11 months ago - 5 years 11 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 11 months ago by guelphpeter. Reason: Sorry I forgot to add the LS version

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

More
5 years 11 months ago - 5 years 11 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 11 months ago by DenisChenu.

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!