Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
$125 per month—let's make that $500!Learn more
To enable Rampart spam prevention on your FormIt forms, simply add hook.RampartFormIt as a hook in your FormIt call:
[[!FormIt? &hook=`hook.RampartFormIt` &rptErrorField=`rampart` &submitVar=`contact_me` ]] /* somewhere in my form */ [[!+fi.error.rampart]]
It has the following properties to be passed into the FormIt snippet call:
|rptErrorField||The name of the field that Rampart should set an error message for should it flag a spam attempt.|
|rptUsernameField||If you have a field not named "username", but want to use it to spam-check as a username on, set the name of the field here. If Rampart doesn't find the field, it will ignore it.||username|
|rptEmailField||If you have a field not named "email", but want to use it to spam-check as an email on, set the name of the field here. If Rampart doesn't find the field, it will ignore it.|
|rptSpammerErrorMessage||The field-specific message that will show when a spammer tries to submit the form.||Your account has been banned as a spammer. Sorry.|