How to setup multipage for headless #1739
-
Looking for examples of a multi page form using a headless setup. I'm currently having trouble with my response not updating after the first page. I'm able to update the formData and after clicking submit on the first page, I can see in payload the values for each field but the response only includes the first page values. I've also noticed that the id and the submissionId is null. Another issue I'm having is on all pages after the first, after clicking submit the fields are not going through validation, so an email field on the second page with a value of 't' is passing. Craft: 4.14.0.1 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Sorry for the trouble @yeboJoseph, I have a developer checking into this shortly. 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hi @yeboJoseph, We have a multipage example here now: It's for Freeform 4 but we'll have it updated to Freeform 5 in the near future. The idea should be the same, though, and the logic to go back and forth between pages is the same in v4 and v5. 🙂 Please let us know if you have any further questions. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
Hi @yeboJoseph,
We have a multipage example here now:
https://github.com/solspace/craft-freeform-demo-nextjs-ajax/tree/v4-multiple-pages
solspace/craft-freeform-demo-nextjs-ajax@4c16c64
It's for Freeform 4 but we'll have it updated to Freeform 5 in the near future. The idea should be the same, though, and the logic to go back and forth between pages is the same in v4 and v5. 🙂
Please let us know if you have any further questions.