Understanding Netlify Form Behavior (build not removing attribute and injecting input)

I am trying to understand the Netlify Forms behavior.

TLDR: Deployed a Svelte static site with a form containing a form like so

Docs say that the data-netlify="true" should be stripped out in the build process and replaced with something like <input type="hidden" name="form-name" value="contact" />. However, this didn’t happen and the form wouldn’t work until I manually added the field.

For future reference and to understand how Netlify works, any ideas as to why this would be?

Hiya, @Hayden :wave:

Sorry you are having trouble getting your forms to work!

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

We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else!

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: