edmundhung / conform

A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js.
https://conform.guide
MIT License
1.8k stars 101 forks source link

One Page MultiStep Doesn't Retain Values #693

Closed jtan80813 closed 1 month ago

jtan80813 commented 2 months ago

Describe the bug and the expected behavior

I'm using Conform and Shadcn Stepper to build a multi-step form, and running into a similar issue with repopulating form fields when navigating back to previous steps,

Conform version

v1.1.4

Steps to Reproduce the Bug or Issue

You can check out the code on CodeSandbox: https://codesandbox.io/p/devbox/conform-with-shadcn-stepper-fxl9sz

What browsers are you seeing the problem on?

Chrome, Firefox, Microsoft Edge, Safari, Others

Screenshots or Videos

No response

Additional context

No response

edmundhung commented 1 month ago

Conform does not persist any form value. You can either keep the submitted value in a database, a cookie or even in the document by rendering the inputs on the previous step again but making them visually hidden.