Replies: 2 comments
-
Could you provide a CodeSandbox example of what you are trying to accomplish? If you want to update other fields when one of them is changed, can you use add and |
Beta Was this translation helpful? Give feedback.
-
@BrendanC23, this is a common use case where a user selects multiple records in a Currently, this application form behaviour seems difficult, if not impossible, to implement using
It is updating the same field but for all the index in the array - could go a step further and specify either specific indexes or all indexes - as opposed to current index only. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my use case, I need to support editing multiple records within the same form, where each field schema has a single field/controller shared across all the records. This presents a challenge, as there’s currently no straightforward way to ensure that a change in one field applies to all records. Additionally, if all records share the same value for a specific field, that value should be displayed; otherwise, the field should appear empty.
This is a common scenario for multi-record forms, but the documentation doesn’t address it. I’ve tried my best to implement this with the following code, but I haven’t been successful.
A potential solution could involve using the
name
prop to pass a string that indicates whether to update all record values or only specific ones. Currently, only a single index is accepted (e.g.,records.0.${name}
), which is preventing me from easily implementing the desired feature.Beta Was this translation helpful? Give feedback.
All reactions