First let me thank you, I missed that “outerclasses” in the docs that really helped. To be clear I’m actually using Bootstrap in my theme and I was able to get the fields to layout the way I wanted them to. I’m not actually sure how your example works - data-grav-field=“textarea”? But in any case I got things working by:
Frontmatter
form:
name: contact
fields:
- name: name
label: Name
outerclasses: col-md-6
classes: form-control input-lg
placeholder: Enter your name
autocomplete: on
type: text
validate:
required: true
- name: email
label: Email
outerclasses: col-md-6
classes: form-control input-lg
placeholder: Enter your email address
type: email
validate:
required: true
- name: message
label: Message
outerclasses: col-md-12
classes: form-control input-lg
placeholder: Enter your message
type: textarea
validate:
required: true
buttons:
- type: submit
value: Submit
outerclasses: col-md-12
classes: btn btn-primary btn-lg pull-right
Place in Content
title: Location
process:
twig: true
Contact Form
{% include “forms/form.html.twig” %}