Hello I'm asking your help because I'm trying creating a Contact Form (using the example contcat form code in the Grav website) buy i have many problems:
- I would like to add a "radio" or a "select" into the contact form, but everytime i try, and i save "frontmatter's invalid".
- I would like to align all the contact form in the right side of the page, and add in the left side text or a bulletted list but i don't know how to do this
The code i'm using right now is this:
YAMLtitle: 'Sailpost Palermo' form: name: contact-form fields: -pr_az:
type: radio
label: Privato o Azienda
default: privato
options:
privato: Privato
azienda: Aziendaname: cap
label: Dove
placeholder: 'CAP'
autofocus: 'on'
autocomplete: 'on'
type: text
validate:
required: trueYAMLname: name label: Nome placeholder: 'Inserisci il tuo nome' autofocus: 'on' autocomplete: 'on' type: text validate: required: true - name: email label: Email placeholder: 'Inserisci il tuo indirizzo email' type: email validate: required: true-
name: telefono
label: Telefono
placeholder: 'Inserisci il tuo numero di telefono'
autofocus: 'on'
autocomplete: 'on'
type: text
validate:
required: trueagree_to_terms: null
type: checkbox
label: 'Presto il consenso al trattamento dei miei dati personali, come da informativa sulla privacy Sailpost'
validate:
required: true
buttons:YAMLtype: submit value: Submit - type: reset value: Reset process: - email: from: '{{ config.plugins.email.from }}' to: ['{{ config.plugins.email.from }}', '{{ form.value.email }}'] subject: '[Feedback] {{ form.value.name|e }}' body: '{% include ''forms/data.html.twig'' %}' - save: fileprefix: feedback- dateformat: Ymd-His-u extension: txt body: '{% include ''forms/data.txt.twig'' %}' - message: 'Grazie per averci scritto, verrai contattato il prima possibile!' - display: thankyou
Thank you very much, sorry for bad english 🙂