I am using Knockout to validate my page, and everything is working correctly. On input blur, if the required field is empty, the error symbol * is displayed next to the text box. However, I have a span tag at the bottom of the page that I want to display * Required field if and only if a field has the * next to it.
My intention was to have the span similar to
<span data-bind="visible: errors().length > 0"> * Required field </span>
The issue is, apparently on page load, the .length of my errors variable from
errors = ko.validation.group({ variables })
evaluates to all my inputs as having errors since they are null or empty on page load. Is there any way to disable this initial validation, but still have it validate on blur? Request any code if necessary, but I did not see that as pertinent at the moment.