Hi John,
Testing on the live site using the built in numeric input component and Minimum value rule. Incognito mode makes no difference in the operation.
Have the Min value set to 10. Less than 10 the form will not submit but also does not show the validation message, 10 or more and it will submit and redirects me to the home page, as expected.
What has me puzzled is why the form action displayValidationErrors is always false. On the K12 site it is true after the submit button is pressed.
I'm wondering if I have missed some type of configuration that would enable validation messages.
I have this in the layout file:
$.validator.setDefaults({ debug: true, errorClass: "invalid", submitHandler: function() { alert("Submitted!") } });
This is the script loaded with the form:
<script type="text/javascript">
if (document.readyState === 'complete') {
window.kentico.updatableFormHelper.registerEventListeners({"formId":"form-Test-4c79","targetAttributeName":"data-ktc-ajax-update","unobservedAttributeName":"data-ktc-notobserved-element"});
} else {
document.addEventListener('DOMContentLoaded', function(event) {
window.kentico.updatableFormHelper.registerEventListeners({"formId":"form-Test-4c79","targetAttributeName":"data-ktc-ajax-update","unobservedAttributeName":"data-ktc-notobserved-element"});
});
}
</script>