angular-dynamic-forms
angular-dynamic-forms copied to clipboard
Not a problem, but a list of questions/howtos
I'd like to ask you about supporting these things (yes/no and if yes, how to approach that)?
- Field dependencies
- show/hide field depending on other field values
- make field required or optional, depending on other values
- show/hide entire form sections dynamically
- change list of available select options depending on other values
- Custom validation provide custom validation rules that would take multiple field values into consideration
Thanks!
All of those features are handled by Angular already, so rather than reinventing the wheel, I simply have Angular handle them as usual. The README references the Angular docs often (via hyperlinks) for exactly that reason. And you can always use the attributes property in your JSON to specify other attributes to apply directly to the tag, which will then be handled by Angular as usual as well.