CHECKBOX (Free Format Question Type)
Top  Previous  Next

Warning:
Because of the complexities of the Free Format Question type, you must completely test your survey to ensure that it functions properly and that the data for your entire survey are being saved correctly.

General Information about Free Format Questions

The CHECKBOX variable is used for presenting a set of check boxes in your survey. Within the Free Format Variable dialog, specify a Free Format Variable with CHECKBOX as the Variable Type. Even though the response to each check box is stored independently as a unique variable name, you do not specify at this point each variable name associated with each check box. Specify the Number of Response Options, or the number of check boxes you have in the set. You may also specify the Min Checks and the Max Checks to force the respondent to check a certain number of check boxes (within the range you specified).

Within the HTML editing area, specify an <INPUT> HTML tag with the type set to "checkbox" for each check box in the set. The easiest way to do this is by using the Free Format Tools button tools. When using the Free Format Tools button, SSI Web automatically provides default HTML with appropriate variable naming conventions.

The name attribute for the <INPUT> tags must be unique and must be the name of the Free Format Variable followed by an underscore "_" character and then a sequential integer starting at one (the last integer is the same as the value you specified in the Number of Response Options).

We recommend that the VALUE attribute of all <INPUT> tags be set to 1. This ensures that the collected data are a '1' if the respondent checked the check box and a '0' if they did not check it.



CHECKBOX Example


(The following parameters represent a Free Format Question with one variable defined.)

Free Format Question Name:FF5  
Variable Name:FF5_HOBBIES  
Variable Type:CHECKBOX  
Require Response:(checked)  
Error Message String:Hobbies  
Number of Response Options:5  
Min Checks:0  
Max Checks:5  

Example HTML Code:

Please select activities that you like as hobbies from the following list: <BR>
<I> (Check all that apply) </I> <BR>
<INPUT TYPE="checkbox" NAME="FF5_HOBBIES_1" VALUE="1"> Walking <BR>
<INPUT TYPE="checkbox" NAME="FF5_HOBBIES_2" VALUE="1"> Running <BR>
<INPUT TYPE="checkbox" NAME="FF5_HOBBIES_3" VALUE="1"> Hiking <BR>
<INPUT TYPE="checkbox" NAME="FF5_HOBBIES_4" VALUE="1"> Swimming <BR>
<INPUT TYPE="checkbox" NAME="FF5_HOBBIES_5" VALUE="1"> Eating <BR>