ConfirmIt Household validation
The script checks if the children living in the household are higher than the people living in the household.
//surveyscripting.com
if (f('Q1').get() == 2 && f('Q2').any('3', '4'))
{
RaiseError();
SetQuestionErrorMessage(CurrentLang(), 'Please verify your answers.');
}
else if (f('Q1').get() == 3 && f('Q2').any('4'))
{
RaiseError();
SetQuestionErrorMessage(CurrentLang(), 'Please verify your answers.');
}