MODX Extra
Install the extra via MODX package manager
Signup for an account on https://brevo.com/ and create an api key.
Add api key to your system settings
[[!FormIt?
&hooks=`brevoSubscribe`
&brevoListIds=`yourListIds` // comma separated list
&brevoAttributes=`firstname=FNAME,lastname=LNAME` // Optional attributes to add to the contact
]]
<form action="[[~[[*id]]]]" method="post">
<div>
<label>E-mail: </label>
<input type="email" name="email" value="[[!+fi.email]]">
</div>
<button type="submit">senden</button>
</form>
| Property | Description | Default Value |
|---|---|---|
| brevoEmailField | Field name of email input field. | |
| brevoListIds | Comma separeted list of List-Ids. Example 2,3 | |
| brevoAttributes | Additional attributes to add to the contact, like firstname, lastname, phone etc. A comma separted list of fieldnames and brevo fieldnames in uppercase. Example: myinputfieldname=BREVOFIELDNAME,firstname=FNAME |