I'm making website when user can save filled form as filter with a name like: "My filter".
He should be able to choose this filter later, click "Load" and all fields in the form should be filled like he had it last time.
To do this I'm creating FormData object with entire form, sending it using AJAX to a server and saving it in a database. Everything good for now.
When user clicks to load previously saved filter, I'm pulling it from database and have the same saved FormData object.
Is there any way to do it inversely? Now I'd like to fill entire form using FormData object. Can I do it in a simple way without using my own written iteration?