![]() In the top right corner, check the “Show Flow IDs” box.But as your logical branching becomes more complex, it can be hard to track how each participant saw the survey. The simplest example is to place people into a control group or test group. Many surveys contain some branching logic. Add the sample code from here: Sample JavaScript Index LookupsĮxample survey: Try it here.Select the Advanced Question Options (Gear icon) in the consent block.The consent page, since it is at the beginning and seen by all, is a good place to add some simple JavaScript for setting values. Setting these variables must happen at least one page before they are used.This method will only work with positive integers and zero, but I prefer to leave zero as the unknown condition and not set it explicitly.Set the values to randomly assign an integer* value.Add two more embedded variables “es” and “de” to the initial survey flow element.Even without the URL piece, we can generate a random number and give someone text from a quick JavaScript snippet. If instead we wanted to just use a simple code number we could. Then with simple JavaScript we can “lookup” the text value from a set. We do not always want the participants to see those values in the URL primarily because they can be changed easily. When a user takes the survey this question will display their status as an employee or employer and what department they work for.įurther info: Passing Information Through Query Strings.Įxample Survey: Try it here.We can then use these values in the survey by adding piped text to our question.When someone arrives from that link, the values after the equals sign will be stored in that variable. In our example we can add the following to our anonymous survey link “?employee_status=employee&department=sales”.In “Survey Flow” add embedded variables for “employee_status” and “department.” Move this to be first element in the survey flow.By sending different links to each employee/department combination we can direct the information a little more closely. Rather than create separate surveys, we utilized the survey link to transfer information about our pool. We had to track employees and managers, as well as the department in which they worked. Recently we had a research project with many different subject groups. Populate Embedded Variables from Survey Links Run the survey and see the different conditions and corresponding block in the Randomizer.Įxample survey: Try it here.Modify the Question after the Randomizer to display the new information.job=graphic designer, department=Marketing. ![]() In each of the groups’ embedded variable blocks set the department and job.In each group add a Block element and choose employee or executive.Drag each salary setting setting block into one of these groups.Do this twice more for 3 group elements in the Randomizer.In “Survey Flow” in the “Randomizer” section click “Add New Element Here” and select “Group”.To the initial embedded data block add the variables “job” and “department”.Add a text description question in the Executive block that says “After your yearly review, you have been promoted.”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |