T
TanStack2mo ago
rising-crimson

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
rising-crimson
rising-crimsonOP2mo ago
@Luca | LeCarbonator you might know this?
absent-sapphire
absent-sapphire2mo ago
just finished an exam, give me about an hour and I can take a look
notable-maroon
notable-maroon2mo ago
@markus0739 can you rephrase your question? I'm not sure what you're trying to accomplish
rising-crimson
rising-crimsonOP2mo 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:[]}]}
notable-maroon
notable-maroon2mo 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?