Send a lead form to Salesforce and Mautic
In this tutorial you build a small lead form and connect it to Salesforce and Mautic. Every submission creates a Contact in Salesforce and is passed to a Mautic form. At the end you test the form and check the result on the entry.
You need CampaignSuite connected to Salesforce and Mautic (see Installation), and a Mautic form that accepts at least an email address. Use sandboxes while you practise.
1. Build the form
Section titled “1. Build the form”- In WordPress go to Forms > New Form and give the form a title, for example “Lead form”.
- Add these fields: Name (first and last name), Email, Phone and a Checkboxes field with one choice, “Keep me informed by email”.
- Make Name and Email required and save the form.

The form in the screenshot also has a hidden field Salesforce Contact ID. You don’t need it for this tutorial. It’s used to update contacts you already know (see Prefill).
2. Add the Salesforce feed
Section titled “2. Add the Salesforce feed”- Open the form and go to Settings > CS | Feeds, then click Add New.
- Enter a Feed name, for example “Salesforce contact”.
- Choose Feed type SF | Create or update.
- Choose Feed moment When entry is created. The feed then runs right after the submission is saved.

- Under Create or Update Settings choose the Object Contact.
- Under Map your form fields to the object fields add a row for each field: First Name from Name (First), Last Name from Name (Last), Email from Email and Business Phone from Phone.
- To store where the contact came from, add a row Lead Source and type a fixed value such as
Websiteas the value (choose Add Custom Value). - Click Save Settings.

3. Add the Mautic feed
Section titled “3. Add the Mautic feed”- Click Add New again and enter the Feed name, for example “Mautic form”.
- Choose Feed type MTC | Form Submit and again Feed moment When entry is created.
- Under Mautic Settings choose the Form in Mautic.
- Map the Mautic form fields: for example Email (Alias: email) from Email and First Name (Alias: first_name) from Name (First).
- Click Save Settings.

Both feeds now show in the feed list.

Which feed moment should I choose?
Section titled “Which feed moment should I choose?”- When entry is created is the usual choice, and the one used here.
- Before confirmation works the same way, but runs just before the visitor sees the confirmation.
- By hand sends nothing until you run the feed from an entry.
- The FinDock moments are only for forms with payments. They send data after a payment event.
4. Test the form
Section titled “4. Test the form”- Put the form on a page with the Gravity Forms block, or use Preview in the form editor.
- Fill in the form with fictional data, such as “Fenna Demoveld” and
[email protected], and submit it.

5. Check the entry
Section titled “5. Check the entry”- Go to Forms > Entries, choose your form and open the new entry.
- Look at the Feed Action Details box. Each feed shows its Result. For Salesforce that’s a link to the new Contact, for Mautic a message that the form was submitted.

If a feed shows Error, the notes on the entry tell you why. Common causes are a required Salesforce field that is not mapped, or a Salesforce duplicate rule that blocks a contact that already exists. After fixing the feed you can run it again with the Execute Feed Actions box on the entry.
You can also open the record in Salesforce and the submission in Mautic to see the data arrive.
Next steps
Section titled “Next steps”- To send only people who ticked the checkbox, add a Feed Condition to the Mautic feed.
- To update known contacts instead of creating new ones, see Prefill and Feeds.
- To collect donations, see Fields and FinDock payments.