Closed crypticcookee closed 8 years ago
setValidity
isn't called anywhere in the library itself, you might be resetting it yourself by accident? It is also called by form-step-validity
directive (if you use it) and the validity value would be the one from your angular form.
Thanks, figured it out, the form element had the form-step-validity directive which was causing the issue.
Regards
On Mon, May 30, 2016 at 5:14 PM, Thomas Roch notifications@github.com wrote:
setValidity isn't called anywhere in the library itself, you might be resetting it yourself by accident? It is also called by form-step-validity directive (if you use it) and the validity value would be the one from your angular form.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/troch/angular-multi-step-form/issues/47#issuecomment-222427012, or mute the thread https://github.com/notifications/unsubscribe/ASuuKTqi_u4tmGQFyqMKXOyViDMirFCYks5qGo49gaJpZM4Ipaf9 .
Hi,
I have a form in a step which performs calculations. Based on the calculations I use $scope.$setValidity() function to set it to true or false. This works fine for the next button. But when I click on previous it resets the validity. I have tried to rerun the script on page load but it it seems the values set in the script are ignored. Is there a way to preserve the validity of previous form?
Thanks