Adding (data-netlify="true") to Form Code

hi there,

in a nutshell, forms work like this:

  • you add a form using the right tags to your project
  • when we build your site, we “scan” your site’s code for the appropriate form tags, if we find `em, we know you will be running a form and we make note of the settings (this is why a html version of a form must be present in your site when we build it, even if you are using a JS based SSG)
  • when a customer uses your form, we handle it as per the settings we detected on build - so if you make changes to your code, you need to deploy.

there is a lot of debugging info in here that you might find helpful:

This Support Guide is the first port of call to debug any forms issues. There are also many other Support Guides for forms - you can find them here: #Netlify-support:support-guides

If you are still having problems, please provide more information such as what you have already tried, and a link to your live form. :slight_smile: