You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I have two forms and one object is a child of another object.
Imagine <FormA/> and <FormB/> - they both have their own useForm hook and associated fields. When FormA is submitted, and successfully creates an object (its a post to a backend endpoint) then I want to use the response from FormA's api endpoint (it returns an id) to then use when Form B is submitted. Form B needs FormA.id to work. How can I do this? Its hard because they are in different contexts and rendered in different areas of the site.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I have two forms and one object is a child of another object.
Imagine
<FormA/>
and<FormB/>
- they both have their ownuseForm
hook and associated fields. When FormA is submitted, and successfully creates an object (its a post to a backend endpoint) then I want to use the response from FormA's api endpoint (it returns an id) to then use when Form B is submitted. Form B needsFormA.id
to work. How can I do this? Its hard because they are in different contexts and rendered in different areas of the site.Beta Was this translation helpful? Give feedback.
All reactions