Im sure have follow instructions in example documentation.
here you can see the live site with my form. form ist on home page.
hier is the page frontmatter content:
title: 'Achtsamkeit MBSR - Helga Hummel - Dipl. Psychologin'
process:
markdown: true
twig: true
cache_enable: false
recaptchacontact:
enabled: false
form:
name: contact
fields:
-
name: name
label: 'Vor- und Nachname'
placeholder: 'Geben Sie hier Ihren Namen ein.'
autofocus: 'off'
autocomplete: 'on'
type: text
validate:
required: true
-
name: telefonnummer
label: Telefonnummer
placeholder: 'Wie kann ich Sie telefonisch erreichen?'
autocomplete: 'on'
type: text
validate:
required: true
-
name: email
label: E-Mail
placeholder: 'Geben Sie hier Ihren E-Mail-Adresse ein ein'
type: email
validate:
required: true
-
name: message
label: Nachricht/Frage
placeholder: 'Ihr Nachricht oder Frage an mich'
type: textarea
validate:
required: false
-
name: erstkontakt
label: Erstkontakt
placeholder: 'Wie haben Sie von mir erfahren?'
type: textarea
validate:
required: flase
-
name: g-recaptcha-response
label: Captcha
type: captcha
recaptcha_site_key: 6Lcf1hQUAAxxxxxxxxxxxxxxznn2ucLoFOt
recaptcha_not_validated: 'Captcha not valid!'
validate:
required: true
buttons:
-
type: submit
value: Absenden
-
type: reset
value: Reset
process:
-
captcha:
recaptcha_secret: 6Lcf1hQUAxxxxxxxxxxxxxxxxxxxxxxxxxyXKmUHF
-
email:
subject: '[Site Contact Form] {{ form.value.name|e }}'
body: '{% include ''forms/data.html.twig'' %}'
-
save:
fileprefix: contact-
dateformat: Ymd-His-u
extension: txt
body: '{% include ''forms/data.txt.twig'' %}'
-
message: 'Vielen Dank fuer Ihre Nachricht.'
-
display: thankyou