adds honeypot attribute info

This commit is contained in:
Tara Z. Manicsic
2022-02-22 20:56:39 -05:00
committed by GitHub
parent c69bbe3904
commit efc59f002a

View File

@ -88,6 +88,18 @@ Many bots scan through webpages and try to see what pages and forms they can get
Since screenreader users will still have this announced, it is important for us to
communicate that this is a field not meant to be filled in.
For this to work we also need to add a `netlify-honeypot` attribute to the form element.
```html
<form
netlify
netlify-honeypot
action="/testpage"
method="post"
>
```
[See it here in the template code.](https://github.com/netlify-templates/nuxt-toolbox/blob/abb24c52738d79bcd11ff8a1bc70e0d2d250e7f1/components/feedbackForm.vue#L3)
### Forms Resources
- [Netlify Forms Setup](https://docs.netlify.com/forms/setup/)