Línea 754... |
Línea 754... |
754 |
if (objFormGenerator.sections[i].questions[j].type == 'multiple' && numberCorrect == 1) {
|
754 |
if (objFormGenerator.sections[i].questions[j].type == 'multiple' && numberCorrect == 1) {
|
755 |
$.fn.showError('ERROR_OPTIONS_ONE_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
|
755 |
$.fn.showError('ERROR_OPTIONS_ONE_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
|
756 |
return false;
|
756 |
return false;
|
757 |
}
|
757 |
}
|
758 |
}
|
758 |
}
|
759 |
if (objFormGenerator.sections[i].questions[j].type == 'multiple' && totalOption != valueQuestion) {
|
759 |
// if (objFormGenerator.sections[i].questions[j].type == 'multiple' && totalOption != valueQuestion) {
|
760 |
$.fn.showError('ERROR_OPTIONS_SUM_VALUES'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
|
760 |
// $.fn.showError('ERROR_OPTIONS_SUM_VALUES'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
|
761 |
return false;
|
761 |
// return false;
|
762 |
}
|
762 |
// }
|
763 |
if (objFormGenerator.sections[i].questions[j].type == 'rating-open' && maxOption > valueQuestion) {
|
763 |
// if (objFormGenerator.sections[i].questions[j].type == 'rating-open' && maxOption > valueQuestion) {
|
764 |
$.fn.showError('ERROR_OPTIONS_MAX_OPTION'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
|
764 |
// $.fn.showError('ERROR_OPTIONS_MAX_OPTION'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
|
765 |
return false;
|
765 |
// return false;
|
766 |
}
|
766 |
// }
|
767 |
}
|
767 |
}
|
768 |
}
|
768 |
}
|
769 |
/*if (valueSection != totalValueQuestion) {
|
769 |
/*if (valueSection != totalValueQuestion) {
|
770 |
$.fn.showError('ERROR_VALUE_SECTIONS'.replace('%s', objFormGenerator.sections[i].name));
|
770 |
$.fn.showError('ERROR_VALUE_SECTIONS'.replace('%s', objFormGenerator.sections[i].name));
|
771 |
return false;
|
771 |
return false;
|