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
I'd like wipe out user input from the model when the condition on a form field is no longer met. Currently the model is updated when a condition is met, but not when it no longer applies. Is there an option that I'm missing? A plain angular ng-if seems to do what I want, but that's because the form only submits elements in the DOM. I'd like to just take the schema-form model as my finished form response and go from there.
Any pointers would be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
I'm not a JS or AngularJS guy by trade (yet!), but I wanted to take a stab at solving my own problem. I had a couple of other form types/decorators I wanted, so I slipped in an extension to the schema-validate directive. https://github.com/jbsaff/angular-schema-form-multiselect for anyone interested. It's not configurable yet, but if I make progress in that direction I'll submit a PR.
Improved my solution and submitted it as a new feature via #371. I'm closing this issue because my initial question was answered and any follow-up can occur in the PR thread.
I'd like wipe out user input from the model when the condition on a form field is no longer met. Currently the model is updated when a condition is met, but not when it no longer applies. Is there an option that I'm missing? A plain angular ng-if seems to do what I want, but that's because the form only submits elements in the DOM. I'd like to just take the schema-form model as my finished form response and go from there.
Any pointers would be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: