-
Hi there, and thanks for developing such a useful tool. I'm building a set of forms that a user will likely return to after submission. When a user returns to a form, is it possible to have that form prepopulated with their previous submission? I thought of fetching the info from the DB with a GET request, but I'm unsure of how to then insert this data into the form. If you have a suggestion for how I might accomplish this, I'd greatly appreciate your input (pun intended ;). Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@kjkent You could treat |
Beta Was this translation helpful? Give feedback.
@kjkent You could treat
Form
as a controlled component, and pass the previous submission as theformData
prop. You would have to ensure you updateformData
using theonChange
prop. See Quick Start -> Controlled Component.