Not sure what’s going on here but the Mailchimp plugin is throwing an error:
$mailchimp = new ErrorLoggingMailChimp(
new MailChimp($this->grav['config']->get('plugins.mailchimp.api_key')),
$this->grav['log']
Which looks to me like the Mailchimp API isn’t being pulled in - but I’ve added it to the plugin settings - then, to be sure I’ve added it to the config file directly.
My form setup looks like this:
forms:
RichiediGuida:
fields:
-
name: Nome
type: text
label: 'Nome'
placeholder: 'Il tuo nome'
-
name: Cognome
type: text
label: 'Cognome'
placeholder: 'Il tuo Cognome'
-
name: email
type: email
label: Email
placeholder: La mail (invieremo qui la tua guida gratuita)'
validate:
required: true
message: 'Senza mail non possiamo inviarti la guida'
buttons:
-
type: Submit
value: 'Si, voglio la guida gratuita'
process:
save:
fileprefix: contact-
dateformat: Ymd-His-u
extension: txt
body: '{% include ''forms/data.txt.twig'' %}'
mailchimp:
required_fields: [email]
email:
subject: '[Richiesta Guida] {{ form.value.name|e }}'
body: '{% include ''forms/data.html.twig'' %}'
reset: true
display: thankyou
---
Thanks for any help/ideas…