Form Actions for Mautic
Plugin allow save to contact field any custom string from form. You're able to use form submitted data and contact fields processed by twig syntax. For example you are able to save to contact field full name with twig syntax:
{{ formfield.firstname }} {{ formfield.lastname }}
Another example of twig syntax
{{formfield.email|slice(0, 4)}}
- four letters from email{{ formfield.email|split('@')|last }}
- domain of provider from email address - string after @{{ formfield.email|split('@')|first }}
- string before @ from email address
Of course, you are able to process data with any twig feature, you are able to transform/truncate data etc.
Allowed custom tags in syntax
- {{ formfield.alias }} - any field from submitted form
- {{ contactfield.alias }} - any contact fields
Installation
Manual
- Use last version
- Unzip files to plugins/MauticFormActionsBundle
- Clear cache (app/cache/prod/)
- Go to /s/plugins/reload
- Enable Form Actions
- Go to forms, create form and see new Form Save actions option in actions tab
Credits
Icons made by Freepik from www.flaticon.com