Welcome, Guest
Username: Password: Remember me

TOPIC: Can you pass a token value in the End URL ?

Can you pass a token value in the End URL ? 2 years 6 months ago #80819

  • guelphpeter
  • guelphpeter's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 36
  • Thank you received: 1
  • Karma: 0
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: 2 years 6 months ago by guelphpeter. Reason: Sorry I forgot to add the LS version
The administrator has disabled public write access.

Re: Can you pass a token value in the End URL ? 2 years 6 months ago #80836

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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
Last Edit: 2 years 6 months ago by DenisChenu.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.091 seconds
Donation Image