Day 6: Controlling the Flow
Previous Topic  Next Topic 

In the last lesson we asked you to create a CALCULATION question using VARIABLES. If you have not done that, go back and do it now before continuing with this lesson.


This lesson will show you how to control the flow of questions in your survey.


Note

You can control the flow using a JUMP from a MENU choice (MENU JUMPS) or by a separate JUMP type question.


Now do the following.


    1. Create a new survey. Insert a MENU question with a prompt of "Do you like wine?" and two choices of "Yes" and "No".


    1. Now insert another MENU question with a prompt of "Which type of wine?" and two choices of "Red" and "White".


    1. Insert a MENU question with a prompt of "Do you prefer sparkling white wine?" and two choices of "Yes" and "No".


    1. SAVE and RUN you survey on the SIMULATOR. You will notice that all these questions are asked irrespective of your ANSWERS. We are now going to modify the survey so that question 2 is only asked if the answer to question 1 is "Yes".


    1. Go back and select question 1. You will notice in the list of choices there is a COLUMN for the menu choice and next to this is a column with a HEADING of "Jump to". This is where you can control the flow of questions. If you click in this area along side the "No" choice a PULLDOWN MENU list will appear showing the other question prompts present in the current section.

Note

There are three other entries that are always in the list: "Next Question", "End of Section" and "*". The * represents no jump.

    1. We want to choose "End of Section" so that no other questions are asked if the user indicates that they do not like wine. At this point it is a good idea to RUN your survey to test if it is working correctly.


    1. We could do that same sort of thing for question 2 so that question 3 is not asked if the END-USER chooses red wine. However we are going to do it in another way by inserting a JUMP question after question 2.


    1. Position the mouse cursor on question 3. Click the JUMP tab on the QUESTION DEFINITION DIALOG. Type in a question prompt of "Skip Sparkling". The JUMP question lets you jump to another question or the End of Section by choosing from the list presented when you click "Jump to". We want to choose "End of Section".


    1. If we just select a question to jump to, the survey would ALWAYS jump to it, we call this an UN-CONDITIONAL jump. This is useful in certain circumstances but in this case we need to make the JUMP question a CONDITIONAL jump so that it only jumps to "End of Section" if the wine colour is "Red".


    1. To do this, tick the check box labelled "Conditional". You will now see an input area with the word TRUE, delete the word TRUE. Now from the list of variables near the bottom of the screen choose "Which type of wine?". This VARIABLE NAME will be automatically entered into the CONDITIONAL input area. Type a space, and = sign and then "Red". You should have the following text showing in the input area.


    1. {{"Which type of wine?"}} = "Red"


    1. Finally click INSERT to insert your question. RUN you survey to test that it works correctly. I have attached the sample survey to this email so you can see how we wrote this survey. But have a go at writing it yourself first.


The next lesson (the final lesson in the first part of this tutorial) we will explore how you can use QUESTION 0 to good effect,


Tip

In the attached survey we tided things up so that the data headings were nice and concise, we did this using DATA NAMES. Each question prompt can have an alternative DATA NAME so that the column heading in the data file is short and concise but the END-USER still gets an informational question prompt.

You enter a DATA NAME in the QUESTION DEFINITION DIALOG by choosing the radio button labelled "Data name" and typing in the input area. You can see all the data names at a glance in the QUESTIONS AREA by clicking on the column heading labelled "Item". Click the heading again to see the question prompts.

HandHeld Systems Ltd ©