There's an excellent module for serializing and deserializing forms: https://www.npmjs.com/package/dom-form-serializer
However this is quite old and we have since gained FormData as a way to serialize forms into a string, which dom-form-serializer
doesn't support (it has its own object format)
What's missing is a way to apply the contents of FormData back to a form (rehydrate, if you will).
This form.elements.namedItem()
API can help match the field name in FormData to the actual fields, but then the logic to select the right checkbox, radio, select, multi-select isn't straightforward. It'd be great to have a modern, simple way to do this.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too