In AskiaScript, the error type object provides information about an error that occurred during the interview. This object is accessible via a question's Errors property.
Returns a Boolean with true or false is the error message is blocking or not).
CurrentQuestion.Errors[1].Blocking' => true
CurrentQuestion.Errors[1].Blocking' => false
Returns a Question object of the original question of the error.
CurrentQuestion.Errors[1].fromQuestion
Id of the error message.
Returns a Number.
See also: Table of errors
CurrentQuestion.Errors[1].Id ' => 2 (expected_0_answer)
CurrentQuestion.Errors[1].Id ' => 26 (expected_0_at_least_1_answer)
Key of the error message.
Also see: Table of errors.
Returns a String.
CurrentQuestion.Errors[1].Key ' => "expected_0_answer"
CurrentQuestion.Errors[1].Key ' => "expected_0_at_least_1_answer"
Returns the translated and formatted error message (using the current interview language).
CurrentQuestion.Errors[1].Message' => "A response is expected for question 'q1'"
CurrentQuestion.Errors[1].Message' => "You can only give one response for question 'q2'"
Returns a string which represents the error (expressed in JSON format).
Returns a String.
' Output in a single line (broken here for the sake of readability)
gender.Errors[1].ToString()
' => {
"key":"expected_0_answer",
"message":"A response is expected for question 'q1'"
}
Always returns "error".
Returns a String.
gender.Errors[1].TypeOf() ' => "error"
| ID | Key | Message | Used |
|---|---|---|---|
| 2 | expected_0_answer | A response is expected for question `%0` | Numerical or Date Time - When a response is missing when no min and no max value defined, or min value defined and no max value defined, or max value defined and no min value defined. |
| 3 | expected_0_only_one_answer | You can only give one response for question `%0` | Single closed - When several answers given for a single closed |
| 8 | expected_0_only_1_answer | You can only give %1 responses to `%0` | Multiple closed - When the number of answers given is greater than the max number of answers |
| unexpected_0_1_answer | You cannot give response ‘%1’ to question ‘%0’ | Single or Multiple closed - When a response cannot be given cause filtered by a link or ignore response routing | |
| 26 | expected_0_at_least_1_answer | Please select at least %1 for question `%0` | Multiple closed - When the min number of answers is not reached |
| 4 | expected_0_numeric | Response to question `%0` must be numeric | Numerical - When a non numerical answer given (for instance ABC) |
| 5 | expected_0_between_1_2 | Response to question `%0` must be between %1 and %2 | Numerical or Date Time - When the min and max values are defined and the answer given is out of the range or missing |
| 6 | expected_0_greather_than_1 | Response to question `%0` must be above %1 | Numerical or Date Time - When the min value is defined and the max values is not defined and the answer given is lower than the min value |
| 7 | expected_0_lower_than_1 | Response to question `%0` must be under %1 | Numerical or Date Time - When the max value is defined and the min values is not defined and the answer given is greater than the max value |
| 13 | expected_0_ranking_between_one_1 | Ranking must be between 1 an %1 for question '%0' | Old ranking control - legacy message when the ranks given are out of range |
| 14 | expected_0_rank_1 | Rank %1 is missing for question `%0` | Old ranking control - legacy message when a rank is missing |
| 15 | expected_0_rank_1_once | Rank %1 has been given more than once for question `%0` | Old ranking control - legacy message when there is duplicate rank |
| 20 | expected_0_semi_open | You must specify the semi-open response | Old semi open - legacy message when the semi open is mandatory |
| 21 | expected_0_no_decimal | Response to question `%0` cannot be decimal | Numerical - When zero decimal set for the question but the answer has decimal |
| 22 | expected_0_date | Please enter a valid date for question `%0` | Date - When the date format is not correct |
| 23 | expected_0_time | Please enter a valid time for question `%0` | Time - When the time format is not correct |
| 24 | quota_closed_0 | The quotas are closed for `%0` | Quota - The message shown when Allow over target is set to Agent decides |
| 27 | expected_0_answer_single | Please choose one answer! | Single closed - When a response is missing |
| 28 | expected_0_answer_multiple | Please choose all that apply! | Multiple closed - When a response is missing |
| 29 | expected_0_answer_single_grid_row | Please choose one answer per row (horizontally)! | Single closed in loop - When a response is missing |
| 30 | expected_0_answer_single_grid_column | Please choose one answer per column (vertically)! | Not used |
| 31 | expected_0_answer_multiple_grid_row | Please choose at least one answer per row (horizontally)! | Multiple closed in loop - When a response is missing |
| 32 | expected_0_answer_multiple_grid_column | Please choose at least one answer per column (vertically)! | Not used |
| 33 | expected_0_answer_open_ended | Please type in your answer! | Open ended - When a response is missing |
| 34 | expected_answer_at_least | One or more questions have not been answered and require further input. Please carefully review your responses on this page. | Not used |
| 35 | continue_left_off | Continue where you left off | Not used |
| 36 | next | Next | Not used |
| 37 | previous | Previous | Not used |
| 38 | start_survey | Start Survey | Not used |
| 39 | submit | Submit your answers | Not used |
| 40 | picture_see | Please click on the link to see the picture! | Not used |
| 41 | picture_enlarge | Please click on the picture to enlarge! | Not used |
| 42 | picture_close | Please click on the picture to close the window! | Not used |
| 43 | interview_0_percent_completed | %0% completed | Not used |
| 10 | questionnaire_not_loaded | The questionnaire had not been loaded | Not used |
| 11 | password_incorrect | Sorry the password you provided is incorrect | Not used |
| 12 | specify | Specify | Old semi open - The caption used in the Combo box (for the CATI screen) |
| 16 | other | Other | Not used |
| 17 | new | New... | Old semi open - The caption used to create a new response (for the CATI screen) |
| 18 | other_specify | Other (specify) | Old semi open - The caption used for the response generated for the semi open |
| 19 | dont_know | Don't Know | Numerical and Open ended - The caption used for the dk checkbox generated on the screen (legacy) |
| etc | ... | Date - the caption used by the button which triger the date picker (for the CATI Screen) | |
| custom_message_1 | ... | Custom message key | |
| custom_message_2 | ... | Custom message key | |
| custom_message_3 | ... | Custom message key | |
| custom_message_4 | ... | Custom message key | |
| custom_message_5 | ... | Custom message key | |
| custom_message_6 | ... | Custom message key | |
| custom_message_7 | ... | Custom message key | |
| custom_message_8 | ... | Custom message key | |
| custom_message_9 | ... | Custom message key | |
| custom_message_10 | ... | Custom message key | |
| custom_message_11 | ... | Custom message key | |
| custom_message_12 | ... | Custom message key | |
| custom_message_13 | ... | Custom message key | |
| custom_message_14 | ... | Custom message key | |
| custom_message_15 | ... | Custom message key | |
| custom_message_16 | ... | Custom message key | |
| custom_message_17 | ... | Custom message key | |
| custom_message_18 | ... | Custom message key | |
| custom_message_19 | ... | Custom message key | |
| custom_message_20 | ... | Custom message key |