ng-dynamic-forms icon indicating copy to clipboard operation
ng-dynamic-forms copied to clipboard

keep values of inputs that share the same id/name in sync

Open drkhannah opened this issue 6 years ago • 1 comments

I'm submitting a


[ ] Bug / Regression
[ ] Feature Request / Proposal

I'm using


NG Dynamic Forms Version: `8.1.0`

[ ] Basic UI
[ ] Bootstrap UI  
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material  
[ ] NG Bootstrap
[ ] Prime NG

Description

In a form i build from json, sometimes questions are asked twice.

I've noticed that if i give these duplicate inputs the same id/name in my form json, if one has a value, the other will have that exact same value when the form is built.

but when i update either of those values, the other input's value will not update.

How could i keep these values in sync so that all inputs that share the same id/name will always share the same value, no matter which input the user changes the value of

drkhannah avatar Nov 11 '19 12:11 drkhannah

or is it possible to sync values of controls that have different id/name but are similar like firstName2 and firstName2 both have id's that start with firstName so they should stay synced

drkhannah avatar Nov 11 '19 15:11 drkhannah