Contact form
The contact form takes enquiries right on the page. You set labels, required fields and spam protection in the Panel. Messages are sent through Netlify Forms.
What it does
- Four fields: first name, last name, email and message – with your own label, placeholder and help text
- Required fields: you pick first name, last name and message one by one, the email address is always required
- Spam protection: reCAPTCHA, honeypot or none
- Your own messages for success and error, optionally with a redirect to a success page
- Styling: field spacing, width, alignment, rounding of the fields and button style
- Netlify Forms: sending and notification run through Netlify – the form only works on Netlify hosting
- Group: Elemente (elements)
- Add it: + in a layout → Elemente → Kontaktformular
- Tabs: Inhalt (content), Einstellungen (settings)
- Docs: Blöcke → Elemente (German)
Live examples
A form name may only appear once per website. So this page shows just one form („showcase-demo“) and then compares the options. You will find the real contact form on the contact page.
1 · Honeypot, required fields, own button
„Spam-Schutz“ (spam protection) Honeypot. „Nachname“ (last name) and „Nachricht“ (message) are required. „Felder-Rundung“ (field rounding) 8 px, „Formular-Breite“ (form width) Groß (75%) (large). „Lokale Button Einstellungen“ (local button settings) are on: bold font, background in the tertiary colour (blue grey), primary (orange) on hover.
2 · The three spam protection options compared
For each form you pick one option in the „Spam-Schutz“ field in the „Inhalt“ (content) tab.
| Option | What visitors see | When it fits |
|---|---|---|
| reCAPTCHA (recommended) | A short check before sending | The default for public sites |
| Honeypot | Nothing – a hidden field catches bots | When the form should run as smoothly as possible |
| Kein Spam-Schutz (none) | Nothing | Only for tests or internal pages |
How to do it in the Panel
Five steps from an empty block to a finished form.
Click the plus in a layout, open the group „Elemente“ and pick „Kontaktformular“.
In the „Inhalt“ (content) tab, enter the „Formular Name“ (form name). It has to be unique on the website because Netlify uses it to sort the messages. Add the „E-Mail Betreff“ (email subject) for the notification. Under „Spam-Schutz“ (spam protection) pick reCAPTCHA, honeypot or none.
Under „Formularfelder Beschriftung (optional)“ (form field labels) there is one field each for „Vorname Feld“, „Nachname Feld“, „E-Mail Feld“ and „Nachricht Feld“. There you set „Label“, „Platzhalter“ (placeholder), „Hilfe Text“ (help text) and „Pflichtfeld?“ (required?), and for the message also the „Zeilen“ (rows). You can also change „Absenden-Button Text“ (submit button text), „Erfolgsmeldung“ (success message) and „Fehlermeldung“ (error message). „Erfolgsseite“ (success page) redirects to a page of your own after sending – without it, the success message appears inside the form.
In the „Einstellungen“ (settings) tab you set „Feld-Abstand“ (field spacing: Klein, Mittel, Groß), „Formular-Breite“ (form width), „Formular-Ausrichtung“ (form alignment) and „Felder-Rundung“ (field rounding). „Text Einstellungen“, „Lokale Button Einstellungen“ and „Button Ausrichtung“ come on top.
In the Netlify dashboard, switch on form detection under „Forms“. Under „Project configuration“ → „Notifications“, set up the email notification. Without these steps the messages do not reach you.