Support Forums

Questions about surveying? How does this thing work? We're here to help!

The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.

Current User: Guest

Page Hide by considering number of selected choice from previous question

Topic Locked
UserPost

5:32
September 6, 2008


navikn

New Member

navikn

posts 2

May I ask how to hide the page in conditions. For example, Q1 is multiple selection (such as 10 choices). I want the condition that if number of selected choices in Q1 is less than or equal to 3, then Q2 is hide.

5:53
September 8, 2008


Mario

Admin

Boulder, CO

posts 994

First and foremost, that would require Q1 and Q2 to be on separate pages. I would actually ask Q1, then page 2 with Q2 you would have a custom script that would check this first question in the manner you described and if >=3, it would jump to page 3, they would not see Q2 on page 2.

The rough of the script placed at the TOP of page 2 would contain the following:

%%responses = sgapiGetValue(xxx);
%%count = sgapiCount(%%responses);

if (%%count <= 3){
  sgapiJumpToPage(yyy);
}

xxx represents the question id of the checkbox question (Q1). You can click the Advanced Edit button (paper and pencil) to edit a question and the right side has the question id.

yyy represents the page id you are jumping to. This is a bit trickier. Hover your mouse over the 'copy page' or 'delete page' links on the page you wish to jump to. Look at the URL in the status bar of the browser (bottom) and near the end it will have something similar to: qid=4. In the example, 4 would be put in place of yyy.

There is a function to hide the question rather than page jumping, but this was the simplest option.

Update 10-29-08

If you have 'other' boxes in the checkbox question, there is a need to update the script as follows:

%%responses = sgapiGetValue(xxx);
%%count = sgapiCount(%%responses);
foreach (%%responses as %%value){
    if (%%value == ''){
        %%count = %%count – 1;
    }
}
if (%%count <= 3){
  sgapiJumpToPage(yyy);
}

Mario Lurig
Sales Engineer – SurveyGizmo
How was my customer service? Provide feedback!



The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.