You can add validators in the following file:
<joomla_dir>/administrator/components/com_ariquizlite/templates/question_add.html.php
or in file for new question type.
If you want to disable questions validator, remove the following code in question_add.html.php file:
Code: |
aris.validators.validatorManager.addValidator(
new aris.validators.customValidator('zQuiz[Question]',
function(val)
{
var isValid = true;
<?php echo $editor->save('zQuiz[Question]') ; ?>
var value = val.getValue();
isValid = (value && value.replace(/^\s+|\s+$/g, '').length > 0);
return isValid;
},
{emptyValidate : true, errorMessage : '<?php AriQuizWebHelper::displayResValue('Validator.QuestionRequired'); ?>'}));
aris.validators.validatorManager.addValidator(
new aris.validators.requiredValidator('tbxScore',
{errorMessage : '<?php AriQuizWebHelper::displayResValue('Validator.QuestionScoreRequired'); ?>'}));
|
Regards,
ARI Soft