You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
I have a form that is dynamically built. Each input has a directive that adds attributes for validation based on data from the server. However when the attributes are added the attributes are ignored.
example
`
`
and in my directive I add an attribute if its required
`var input = element.find('input');
if (question.required) {
input.attr('data-val', question.required);
}
`
if the data-val attribute is added this way the form says its valid even though required inputs have not been filled in
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a form that is dynamically built. Each input has a directive that adds attributes for validation based on data from the server. However when the attributes are added the attributes are ignored.
example
`
* {{question.questionText}}
<input id="question-{{question.questionId}}" name="{{question.questionId}}" data-val-required="@Misc.GetResourceByKey("RequiredField")" ng-model="question.value" class="form-control text-box-control" />
if the data-val attribute is added this way the form says its valid even though required inputs have not been filled in
The text was updated successfully, but these errors were encountered: