scientist-softserv / webstore

https://webstore-staging.vercel.app
3 stars 0 forks source link

multiple dynamic forms on a single request #129

Open alishaevn opened 1 year ago

alishaevn commented 1 year ago

Story

Instead of only using the first form in the dynamic_forms array of objects returned from the initialize api call, we want to use all of the forms. Chris was asked for clarification on how to handle the results of various forms if each form would want to know its own information. Below is his response from slack:

Short answer, all the forms get stored in the same data hash

So if we have Form A with fields first_name and last_name and from B with fields street, city and state, we can render them all in line and the resulting quote group will have a single data hash with the keys first_name, last_name, street, city and state

So we have the possibility of conflicting keys, but we get a simpler data model for it

Acceptance criteria

Resources

alishaevn commented 1 year ago

double check if this is an MVP need

alishaevn commented 1 year ago

this is not an mvp need per this slack convo.

alishaevn commented 9 months ago

when we pick up this work, adjust the dynamic_forms_to_embed value in #createRequest and check useInitializeRequest. to account for multiple forms.