Quantcast
Viewing all articles
Browse latest Browse all 17529

Creating variables (randomization/whether users have clicked on a link) - by: Michael91

Hey; I want to create some variables problematically for two purposes:
-To define a float that I can use to randomly assign users questions with specific probabilities.
-To record whether users have clicked on a link I provide.

Presumably, these can both be accomplished with Javascript in limesurvey (let me know if that's not the case). But I'm not sure how. The first step is figuring out how to assign variables to be recorded by the survey at all. From googling, I found this topic: www.limesurvey.org/forum/can-i-do-this-w...riable-in-limesurvey

However, the code provided by tpartner doesn't seem to do anything for me (or I am using it incorrectly). When I add in that script to create the "Lines" variable as 4, and then activate the survey, that variable doesn't show up in my responses when I complete the survey. Additionally, I've added "Lines == 4" into relevance question for a later question group to see if I can use the Lines variable to show my other question, but this question group remains hidden. So I don't think "Lines" is actually be created anywhere. I must be doing something wrong, but I have no idea how to fix my issue. Can anyone help? Much appreciated. Thanks!

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>