unable to run validation when validate.as.you.type option is ser to false.
Posted: Thu Jan 19, 2023 3:42 pm
Hi Team,
When i set 'validate.as.you.type option' to false in web author Validation Results panel is not rendered. As per the description of this option it is used to turn off the automatic validation.
I have similar use case where we need to run validation when user needs it. but with this option set to false, I do not see any tool bar button/shortcut to run validation.
I tried to run the validation task manually by creating custom plugin. sample code below. but this does not bring back the validation results right panel. Is there a way to include a button to run validation on demand?
When i set 'validate.as.you.type option' to false in web author Validation Results panel is not rendered. As per the description of this option it is used to turn off the automatic validation.
I have similar use case where we need to run validation when user needs it. but with this option set to false, I do not see any tool bar button/shortcut to run validation.
I tried to run the validation task manually by creating custom plugin. sample code below. but this does not bring back the validation results right panel. Is there a way to include a button to run validation on demand?
Code: Select all
@Override
public String doOperation(AuthorDocumentModel model, ArgumentsMap args) throws IllegalArgumentException, AuthorOperationException {
try {
model.getDocumentValidator().getValidationTask().call();
} catch (Exception e) {
log.error("Exception while performing manual validation", e);
}
}