innis-maggiore/silverstripe-userforms-submission-filter

Silverstripe UserForms Filter module allows developers to filter FormSubmissionFields by a list of filter keys after form submission and in turn changes email recipients and subject. It also adds a new Hidden IpFormField that can be added to UDF fields list for easier IP blocking

v5.3.0 2025-09-05 12:23 UTC

This package is auto-updated.

Last update: 2025-09-05 12:24:46 UTC


README

Default installation extends SilverStripe\UserForms\Model\UserDefinedForm and adds a few new CMS fields under a spam tab. SOme small and simple tools for trying to reduce spam to customer emails and repeat offender submissions in the database. There is also a IpFormField added to the UserForm field_classes list that will retrieve the clients remote_addr after form submission to append to form email response.

Installation

Using Composer
$ composer require innis-maggiore/silverstripe-userforms-submission-filter ^5.0
  • Run /dev/build?flush=all

Add YML for DNADesign\ElementalUserForms\Model\ElementForm if using elemental's form panel

app/_config/mysite.yml

DNADesign\ElementalUserForms\Model\ElementForm:
  extensions:
    - InnisMaggiore\SilverstripeUserFormsSubmissionFilter\Extensions\InnismaggioreUserFormExtension
  email_tld: '@mycompany.com'

Add YML config for viewing new CMS fields - not for clients, but web admins

app/_config/mysite.yml

InnisMaggiore\SilverstripeUserFormsSubmissionFilter\Extensions\InnismaggioreUserFormExtension:
  email_tld: '@mycompany.com'