|
|
 |
Web Questionnaire response validation makes sure that respondents have filled out the surveys correctly before submitting the replies to the server. It is real-time. The validation includes required response validation, data type and format checks, and range checks.
In the survey design phase, the designer can decide if the question must have answer or the answer must have value. What kind of data type is preferred and how the answer should be formatted can be specified, too. After the respondent clicks the submit button, a validation check is performed immediately. The survey form can not be submitted until the responses pass checks.
Required responses validation
If a question must have answer, at least one of selects under the question node should be answered. Some of select types have "reply must have value" attribute. They can be Text, Checkbox, List, or Multiple Selection. Generally, a checkbox with "reply must have value" is used to make sure that the respondents have read the term and agree it.
If the attribute is checked, the reply must have value. If required responses are not answered, an alert message will be popped up.
Text responses validation
With text responses validation, you will increase the quality of the reply by avoiding invalid data. A text box can be the type of alphabetic, alphabetic-numeric, currency, date, number, phone and email. If the date type, format or range is incorrect, a message will be shown to describe what kind of data is proper.
- Alphabetic
Only alphabetic is allowed, the length might be validated according to the specified maximum and minimum length. Too short or too long is not allowed.
- Alphabetic-numeric
Each character can be either alphabetic or numeric. The valid length might be checked. It should meet the specified length criteria.
- Currency
The currency value is positive without currency sign, name or ISO code. It must be comma separated at thousands. A decimal point (.) is required but it accepts zero number after the point. The number of decimals is unlimited.
- Date
Three format options are supplied. It can be dd/mm/yyyy, mm/dd/yyyy or yyyy/mm/dd. The month (mm) should not be greater than 12, and the day (dd) should not be greater than 31. If the value is less than 10, single character can be accepted.
- Number
Each character should be numeric. The check rule can be only greater than or less than. It can also range between lower bound and upper bound. If any attribute is checked, this text must have value.
- Phone
Two options are supplied. People enter phone in different way. For US phone, it accepts either dashes between area code, prefix code and suffix like ###-###-#### or parentheses on area code followed by space like (###) ###-#### . For International phone, a country code is needed. It is hyphen separated with optional dash between prefix and suffix code.
- Email
It contains at least one character, then a @ symbol followed by at least one character, then a dot (.), then at least one character. This check rule can not filter out all invalid email strings but it makes sure that the value matches the format of email.
Created on 2007-06-13 12:11:45 by admin
Updated on 2010-06-25 16:33:28 by admin
|
|
|
|