Redirection for Contact Form 7 Documentation
Redirection for Contact Form 7 allows you to redirect users to any desired page after a successful email submission, execute scripts post-submission, and store submissions in the database. The plugin also lets you include Honeypot to help minimize spam.
🧰 Prerequisites
- Contact Form 7
- WP Mail SMTP
- Check this guide to understand how you can set up the SMTP server.
📤 Download and Install
- Navigate to the WordPress Dashboard > Plugins.
- Click the Add New button and type “Redirection for Contact Form 7” in the Search Bar.
- When the plugin appears, click on the Install button and then on Activate.
⚙️ Plugin Tabs
Contact Form 7 comes with a handy Admin screen that includes several tabs:
1. Form: Customize your form with HTML and form tags.
2. Mail: Set up the email template that gets sent after someone submits the form.
3. Messages: Edit the plain text messages for different situations.
4. Additional Settings: Add custom code snippets for extra features.
📝 Note: For more details on each tab, check out the official documentation here.
🚀 Actions tab
The Redirection for Contact Form 7 plugin adds an extra tab called Actions. This tab offers a wide range of actions, as described below.
- Redirect: Direct users to a specific page or external URL after form submission.
- Fire JavaScript: Run custom JavaScript code.
- Save Lead: Store submission data.
- Send Email: Send a customized email.
- Honeypot: Prevent spam submissions.
- Erase/Export Data Requests: Handle data privacy requests.
- Contact Form 7 to API - Pardot Integration & ActiveCampaign (PRO): Integrate with marketing tools.
- Conditional Logic (PRO): Add logic-based actions.
- Thank You Popup (PRO): Display a popup message.
- Mailchimp Integration (PRO): Connect with Mailchimp.
- Salesforce Integration (PRO): Sync data with Salesforce.
Redirect Action
The Redirect action lets you control where users are sent after submitting a form. You can choose a page from your website or an external URL by toggling the "Use custom URL" option.
You can further customize the redirect action with these options:
- Redirect as X-WWW-FORM-URLENCODED (Form Post): Sends the form data using the standard form submission format, which is useful for integrating with other systems that require data in this format.
- Open page in a new tab: Opens the redirection page in a new browser tab, which can be useful for keeping the user on the original site while still directing them to another page.
- Pass all the fields from the form as URL query parameters: This option sends all form data as part of the URL.
- Pass specific fields from the form as URL query parameters: This option is similar to the previous one but allows you to choose which fields to include, offering more control over the data shared.
- Encode passed query parameters: Encodes the data in the URL, making it more secure and less prone to errors when processed by the destination page.
- How many seconds to delay: Sets a delay before the redirection happens.
These options allow for flexible customization of the redirect action, providing a tailored experience for your users.
Fire JavaScript
Add custom JavaScript to run when the form is submitted. Simply name your rule, insert your JavaScript code, and save your changes. This allows you to execute custom scripts and enhance form functionality.
Save Lead
This option offers you the possibility to store form submission data for later use. Configure field mappings to determine how each form field is saved:
- Form fields: The fields from the form.
- Field Label: The label associated with each field.
- Display on leads list: Choose whether each field should appear in the leads list.
Customize which fields are displayed and how they are labeled to tailor the lead information to your needs.
Send Email
The Send Email option lets you customize the email sent upon form submission. Specify the recipient, add addresses in CC and BCC, include additional headers, and set the sender’s information and email subject. This option ensures your emails are sent exactly as you need them.
Honeypot
Enable Honeypot to activate anti-spam filters and reduce unwanted submissions. Select Honeypot from the dropdown menu, click "Add Action", and let the plugin handle spam prevention for you.
Erase/Export Data Request
Manage data privacy requests by choosing to erase or export data. Select the appropriate option from the dropdown menu, specify the username field, and set an error message for non-existent usernames or emails. You can also toggle the option to send a confirmation email, ensuring smooth and compliant data handling.
💡PRO Features
Contact Form 7 to API - Pardot Integration: Seamlessly connect Contact Form 7 with Pardot to enhance your lead management and marketing automation. You can check out the detailed documentation here.
Contact Form 7 to API - ActiveCampaign: Integrate Contact Form 7 with ActiveCampaign to streamline your email marketing and CRM processes. Explore the integration details here.
Conditional Logic: Set up advanced conditional logic to customize form behavior based on user input. Explore how to configure conditional logic in the official documentation here.
Thank You Popup: Display a customizable thank you popup after form submission to enhance user experience. Find out how to set up a thank you popup in our guide here.
Mailchimp Integration: Connect your form submissions directly with Mailchimp to manage your email marketing campaigns. Read more about Mailchimp integration here.
Salesforce Integration: Sync form data with Salesforce to seamlessly integrate with your CRM system. Check out the guide on Salesforce integration here.
Publish Posts: Automatically publish form submissions as posts on your website, streamlining content management.
Created PDF: Generate PDF documents from form submissions to easily share or archive information.
Stripe Integration: Integrate Stripe with your forms to process payments securely and efficiently.
HubSpot Integration: Connect Contact Form 7 with HubSpot to enhance your CRM and marketing efforts.
PayPal Integration: Link your forms to PayPal for smooth and secure payment processing.
Send SMS with Twilio: Send SMS notifications from form submissions using Twilio for real-time communication.