Form submissions plugin

A little demo of a Netlify plugin

netlify-plugin-form-submissions

A Netlify plugin to discover form submissions and fetch them from the Netlify API, making them available to the site generator during each build.

Find installation and usage guide in the plugin repo.

We might use submissions to our forms in different ways in our sites. Here we just list out the data collected from the sample form below. You could trigger all sorts of automation with form submissions and pull the data into the site with this plugin. Which is what happens in this blog comments example.

Form submissions

The plugin ran before this site build, discovered all the Netlify forms in the site and pulled the submission data into json files ready for the site generator to use during the build. Here they are!

Sample form

This form posts to Netlify Forms. You can read about how they work in the docs. It no longer triggers an automated rebuild of this site, so if you post to it your submission won't appear in the site. (But that's just becase this is an unmoderated demo)

Try this for yourself

To quickly experiment with this example, you can click the button below. Clicking the button will clone this test site repo, setup a new site on Netlify and deploy the site complete with Netlify's CI/CD pipeline configured and operational.

Deploy to Netlify