Pass on token to URL displayed in one of the survey questions

Plus d'informations
il y a 5 mois 2 semaines #168263 par helveticar
helveticar a créé le sujet : Pass on token to URL displayed in one of the survey questions
Hello,

I plan a survey that has, in the middle, a link to a website embedded which lets participants use a (personalized) tool. So basically I create participants, assign them a token and their specific survey URL with that token. Then after responding to a few demographic questions, I've added a question group with only a "text display" that has the link to the external tool. However, the link to that tool should include the token (this is because the tool is personalized for each participant, but also because I need to make sure I can track participant's survey responses and tool usage).

Is that possible? I tried to add the token into a URL ({INSERTANS:1234567890} ID thing) but it doesn't work; in fact, even in plain text the token isn't visible, and I'm not quite sure why not. Any help appreciated.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 2 semaines #168265 par holch
holch a répondu au sujet : Pass on token to URL displayed in one of the survey questions
What about {TOKEN:TOKEN}?

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

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 2 semaines - il y a 5 mois 2 semaines #168267 par helveticar
helveticar a répondu au sujet : Pass on token to URL displayed in one of the survey questions
Oh wow, somehow I didn't know that existed. So now it works if I reference it in plain text. However, I'm not able to embed it into a clickable link; it seems like embedding a LimeSurvey reference into HTML just breaks it.

Edit: To clarify, "breaks it" means the URL gets changed from this (in source editor):

<a href=" domain.tld/{TOKEN:TOKEN}/ ">link</a>

to

{TOKEN:TOKEN}/">link
Dernière édition: il y a 5 mois 2 semaines par helveticar.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 2 semaines #168270 par holch
holch a répondu au sujet : Pass on token to URL displayed in one of the survey questions
You probably have to mask the whole thing. EM code can't be directly in HTML code, I guess.

I think Tpartner gave an example once on how to do this.

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

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 2 semaines - il y a 5 mois 2 semaines #168271 par Joffm
Joffm a répondu au sujet : Pass on token to URL displayed in one of the survey questions
Hi,
I just tested it with this entry:
<a href="http://www.mySite.de/phpinfo.php/{TOKEN:TOKEN}">link</a>

and it worked fine:
The link is:




So, you may revise your link.
Don't forget the "http(s)://"

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Pièces jointes :
Dernière édition: il y a 5 mois 2 semaines par Joffm.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 1 semaine #168289 par helveticar
helveticar a répondu au sujet : Pass on token to URL displayed in one of the survey questions
Hm. Is this maybe a version issue? What version of Limesurvey are you using?

As soon as I hit "save" it removes everything before the TOKEN. See this brief video:

im.ezgif.com/tmp/ezgif-1-87e645b6fd.gif

@holch: Might be a plausible explanation, yes. How exactly do I "mask the whole thing" though? Mind you, I'm fairly new (or rather, coming back) to Limesurvey after 5+ years, so a bit rusty (and never really used advanced features).

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 1 semaine #168301 par Joffm
Joffm a répondu au sujet : Pass on token to URL displayed in one of the survey questions
Hi,
I tested in 3.7.1 and 2.73.1

But what about the video?
You only provided a gif.
I only see a gif saying "404 image not found".

And you should show us the exact structure of your link.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 1 semaine - il y a 5 mois 1 semaine #168303 par helveticar
helveticar a répondu au sujet : Pass on token to URL displayed in one of the survey questions
Meeeeeh, apparently the website I used quickly before I had to dash only stored the link for about 7.2 seconds or so. Here's a working link:

imgur.com/u68U1wR

I've tried lots of things, the link structure looks exactly like the one you posted earlier. I guess this might be another version error and I have to update, I'm on 3.7.0.
:(
Dernière édition: il y a 5 mois 1 semaine par helveticar.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 1 semaine - il y a 5 mois 1 semaine #168329 par holch
holch a répondu au sujet : Pass on token to URL displayed in one of the survey questions
There should be no different behavior between your version (3.7.0) and Joffm's versions (3.7.1 and 2.73.1).

There are two things that come to mind, seeing your video:

1. Do you use the code / source view in the WYSIWYG-Editor to put the link?
2. Did you switch off the XSS filter? If the filter is on (default), Limesurvey filters a lot of HTML code.

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
Dernière édition: il y a 5 mois 1 semaine par holch.
Les utilisateur(s) suivant ont remercié: helveticar

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 mois 1 semaine #168341 par helveticar
helveticar a répondu au sujet : Pass on token to URL displayed in one of the survey questions
YES! It was the XSS filter. Thank you soooo much! Awesome! Now we can proceed, great :)

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!