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
Which recommends setting a scope variable called forms in controller so that when it gets set in template I have access to it to set pristine (otherwise $scope.formName is undefined).
When I do that all my validation using rc seems to no longer work. Here is an example:
Name
Name Required
...
Any idea why adding forms.* in front would suddenly cause rc to stop validating things for me?
The text was updated successfully, but these errors were encountered:
Ah, finally figured it out. Needed to do this instead:
`rc['forms.inviteForm'].needsAttention(forms.inviteForm.email)
and this works :). Might be good to add this to docs or allow first form somehow.
Hmm, and back to the beginning apparently. What I'm trying to do is to reuse the form after submission. Immediately after submission I call $setPristine() on the form which works, but the form fields still show that there are validation errors even though they haven't been touched yet.
Ok, here's the technique I'm using
http://jsfiddle.net/zqS79/
Which recommends setting a scope variable called forms in controller so that when it gets set in template I have access to it to set pristine (otherwise $scope.formName is undefined).
When I do that all my validation using rc seems to no longer work. Here is an example:
Any idea why adding forms.* in front would suddenly cause rc to stop validating things for me?
The text was updated successfully, but these errors were encountered: