Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Events > OnBeforeQuestionValidation event
 
OnBeforeQuestionValidation event
The OnBeforeQuestionValidation event runs after a question has been asked and answered but before the standard validation begins. To define actions to be carried out before a question’s response is validated, place the following statements in the routing section of the script:
Syntax
Sub OnBeforeQuestionValidation(Question, IOM)
  <question> <statements>
End Sub
Parameters
<question>
The current question.
<statements>
Interview scripting or mrScriptBasic statements that define the actions to be carried out.
IOM
The interview object. This gives the event access to all the properties and objects related to the interview.
Example
For an example of using OnBeforeQuestionValidation to prepare a record that can be written to the paradata database for the current question, see Paradata example script .
See also
OnAfterQuestionAsk event
Events