T
TanStack5mo ago
fair-rose

Subscribe and pushValue

When I subscribe to another field in the form, it successfully recieves those values. But how can I push/set those values within a subscriber.
No description
5 Replies
fair-rose
fair-roseOP5mo ago
@Luca | LeCarbonator you might know this?
optimistic-gold
optimistic-gold5mo ago
just finished an exam, give me about an hour and I can take a look
ratty-blush
ratty-blush5mo ago
@markus0739 can you rephrase your question? I'm not sure what you're trying to accomplish
fair-rose
fair-roseOP5mo ago
So, I have a subscriber that listenes to another field in my form. If that field have the same relationshipType as my current field, I want to push those values into my new field. I cannot use a listener in my other field, because I do not have the right index - i think. I have this form object: {phoneNumbers: [], relatedPersons: [{phoneNumbers:[]}]}
ratty-blush
ratty-blush5mo ago
Can you create a Stackblitz or paste your code here as text or a github gist or something?

Did you find this page helpful?