Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple dynamic forms on a single request #129

Open
4 tasks
alishaevn opened this issue Jan 19, 2023 · 3 comments
Open
4 tasks

multiple dynamic forms on a single request #129

alishaevn opened this issue Jan 19, 2023 · 3 comments
Labels

Comments

@alishaevn
Copy link
Contributor

alishaevn commented Jan 19, 2023

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

  • We are accounting for all dynamic forms in the array when initializing a request
  • We successfully render the appropriate questions from each form on the request page
  • We retrieve the all data from the form and pass it off to the api
  • A new request is created with the appropriate data

Resources

@alishaevn alishaevn converted this from a draft issue Jan 19, 2023
@alishaevn
Copy link
Contributor Author

double check if this is an MVP need

@alishaevn
Copy link
Contributor Author

this is not an mvp need per this slack convo.

@alishaevn
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant