Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Strapi V4 form changes (fix error with form submission) #78

Open
hwr7dd opened this issue Mar 20, 2022 · 0 comments
Open

Strapi V4 form changes (fix error with form submission) #78

hwr7dd opened this issue Mar 20, 2022 · 0 comments

Comments

@hwr7dd
Copy link

hwr7dd commented Mar 20, 2022

Hey guys,

Strapi v4 requires post requests to be wrapped in with "data". So in the /sections/lead-form.js edit this section:
body: JSON.stringify({ email: values.email, location: data.location }
body: JSON.stringify({data:{ email: values.email, location: data.location }}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant