Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: token attribute field in url field

token attribute field in url field 1 Jahr 9 Monate her #88568

  • cvandermeij
  • cvandermeijs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 13
  • Karma: 0
The URL fields page (docs.limesurvey.org/URL+fields) shows that you can use various fields to use in the URL when a quota is reached. The are basic fields and answer fields. Would it also be possible to use token attribute values in this URL field?

So for example respondent A has value 'abcd' for attribute_1. The URL where the user is redirected to after the quota is reached would be:

example.survey.com/quotafull.html?&respondentid={ATTRIBUTE_1}

I tried this with {ATTRIBUTE_1} and {TOKEN:ATTRIBUTE_1} but the value of this repondent was not passed in the URL.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Aw: token attribute field in url field 1 Jahr 9 Monate her #88986

  • jelo
  • jelos Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 467
  • Dank erhalten: 52
  • Karma: 16
Which version of Limesurvey are you using?
There were some problems with filling variables in URLs in Version 2.
An update should be available.

This should be working:
http://hosturl/script.php?parameter={ATTRIBUTE_1}
http://hosturl/script.php?parameter={TOKEN:ATTRIBUTE_1}

In your example the link is containing "?&" together. The & is only needed between two variables.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Aw: token attribute field in url field 1 Jahr 9 Monate her #89007

  • cvandermeij
  • cvandermeijs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 13
  • Karma: 0
Hi, thanks for your reply. I just updated to the latest version and tried it again. I used the following in th elink:

respondentid={ATTRIBUTE_1}&otherid={TOKEN:ATTRIBUTE_2}

Unfortunately, the values of attribute 1 and 2 were not placed in the link on the quota page. I made sure that the respondent does indeed have sample values for attribute 1 and 2. Do you have any other ideas?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Aw: token attribute field in url field 1 Jahr 9 Monate her #89030

  • jelo
  • jelos Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 467
  • Dank erhalten: 52
  • Karma: 16
This seems to be a bug. I was able to reproduce it.
I have opened a bug report under
bugs.limesurvey.org/view.php?id=6949

Please answer follow up questions from developers.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: DenisChenu

Aw: token attribute field in url field 1 Jahr 9 Monate her #89064

  • cvandermeij
  • cvandermeijs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 13
  • Karma: 0
Hi Jelo, thanks. I'll be looking forward to provide more information if necessary.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Aw: token attribute field in url field 1 Jahr 9 Monate her #89455

  • jelo
  • jelos Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 467
  • Dank erhalten: 52
  • Karma: 16
Shnoulle is asking for a survey file from you. Follow up the notes in the bugtracker.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: DenisChenu
Moderatoren: ITEd
Ladezeit der Seite: 0.131 Sekunden
Donation Image