Forms: 3rd-Party Submission Reformat
Forms: 3rd-Party Submission Reformat
Description
Allows you to customize the formatting of specific submission fields before mapping to a 3rdparty service endpoint with Forms 3rdparty Integration.
For example, can be used to reformat a Gravity Form or Contact Form 7 ‘date’ field, or uppercasing a name field, before sending it to a CRM.
Installation
- Unzip/upload plugin folder to your plugins directory (
/wp-content/plugins/) - Make sure Forms 3rdparty Integration is installed and settings have been saved at least once.
- Activate this plugin
- Choose which fields to reformat, as they appear in the ‘mapping’ column
- Provide one or more regular expression patterns to find and replace, like
/(\d+)\/(\d+)\/(\d+)/to change the date from ‘dd/mm/yyyy’ - Provide one or more regular expression replacement patterns to replace, like
$2-$1-$3to change the date to ‘mm-dd-yyyy’
Faq
Installation Instructions
- Unzip/upload plugin folder to your plugins directory (
/wp-content/plugins/) - Make sure Forms 3rdparty Integration is installed and settings have been saved at least once.
- Activate this plugin
- Choose which fields to reformat, as they appear in the ‘mapping’ column
- Provide one or more regular expression patterns to find and replace, like
/(\d+)\/(\d+)\/(\d+)/to change the date from ‘dd/mm/yyyy’ - Provide one or more regular expression replacement patterns to replace, like
$2-$1-$3to change the date to ‘mm-dd-yyyy’
How do I write a regex?
Sorry, you’ll have to learn that the hard way…
It doesn’t work right…
Drop an issue at https://github.com/zaus/forms-3rdparty-submission-format
Reviews
Changelog
0.2
- refactored to generic, settings-enabled
0.1
- targeting specific fields and replacement formats
