JSON form export/download

Hi guys,

We’re trying to use WebFlow to design a custom form editor. This will provide our customers with a way to input information about an asset and save it to a file which can be uploaded into our database.

I’ve built the form, however I wanted to know if it’s possible to use custom embedded HTML code to handle the following:

When ‘Save Profile’ button is pressed, all input fields/dropdowns in the form are collected. Collected information is sorted into a string and saved as a JSON file. The JSON file is then immediately downloaded from the website.

Is this possible in Webflow?

Note: I’d rather not share the read-only for the form, but I can if it’s needed.

Thanks for any help, it’s much appreciated