Check out the LimeSurvey source code on GitHub!

$_GET['id']

More
5 years 2 months ago #71028 by sukuang123456
hello i have a problem:

i would like to create a survey but, it should be able to receive a id from for example facebook, because i will add a link in facebook to the survey and it should be able to get an id like fbid=1234 into the survey.

is that possible?

cheers

Please Log in to join the conversation.

More
5 years 2 months ago #71057 by Steve01
Hello,

I think you can use a little Javascript method in the template.js file of a design template you use or in your survey. If you want to do it in your survey and not in the design template's .js file you have to check the option "Global settings" -> "Security" -> "Filter HTML for XSS:". If set to "Yes" you can't use Javascript in your survey so you have to set it to "No".

To get the url you can use e.g.
document.url
and look for the parameter you want.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form