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

Quota’s based on number of response for a particular variable

Topic Locked
UserPost

10:39
June 20, 2009


Sanjeev Aggarwal

Guest

Can you auto terminate the survey if the number of respondents in a particular category exceeds a specific number? Ex. if the number of responses from 3-4 employee company is more than 100, that respondent is terminated?

How many employees, including yourself, are in your company in total?

           

Please select one response.

 

1……………………………………………………………………… 1

2 …………………………………………………………………….. 2

3 – 4……………………………………………………………3

5 – 10………………………………………………………………… 4

More than 10 employees……………………………………….. 5 [TERMINATE]

Don't know………………………………………………………… 6 [TERMINATE]

10:41
June 22, 2009


marybeth

Admin

posts 245

Hi Sanjeev,

You can use the following script function to get the response count for a particular question:

sgapiGetQuestionResponseCount(%%questionID,%%osku = null)

This is also a real-time reporting function. It allows you to query the number of times a question has been answered. It’s a count, not an average. By passing an “option sku” you can see how many times a question was answered a particular way. This function is very useful for programming quota limits! Helpful Tip: %%osku should be quoted out “%%osku” to avoid issues with an osku of zero.

The following example checks how many times a particular option has been chosen and then disqualifies if they have reached the quota:

%%max_australia = 2;
%%australia = sgapiGetQuestionResponseCount(2,“0″);
if (%%australia >= %%max_australia){
sgapiDisqualify(“Thank you for your time. We have reached the maximum number of respondents for your region.”);
}

For more information regarding SurveyGizmo Scripting, please see our tutorial:

http://www.surveygizmo.com/sur…..ol-syntax/




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.