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
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
Story
Instead of only using the first form in the
dynamic_forms
array of objects returned from theinitialize
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:Acceptance criteria
Resources
The text was updated successfully, but these errors were encountered: