The two forms should be broken out to individual components. Action Network API communication should be abstracted out to a service so that it can be shared between the two form components. Axios is the ajax library we're using. Quick sign up only needs to submit to Action Network, then can show a confirmation. Suggestion box first submits to Action Network, then submits to the Netlify form. See old JS here: https://github.com/hackforla/website-redesign/blob/master/app/scripts/main.js#L114-L160.
The two forms should be broken out to individual components. Action Network API communication should be abstracted out to a service so that it can be shared between the two form components. Axios is the ajax library we're using. Quick sign up only needs to submit to Action Network, then can show a confirmation. Suggestion box first submits to Action Network, then submits to the Netlify form. See old JS here: https://github.com/hackforla/website-redesign/blob/master/app/scripts/main.js#L114-L160.