Search by

concept7 / statamic-salesforce-connector

concept7

Send Statamic form submissions to Salesforce: Pardot form handlers and Web-to-Lead, configured per form in the Control Panel.

Package info

github.com/concept7/statamic-salesforce-connector

Type:statamic-addon

pkg:composer/concept7/statamic-salesforce-connector

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-12-02 13:22 UTC

This package is auto-updated.

Last update: 2026-12-02 15:19:15 UTC


README

Send form submissions to Salesforce

Send Statamic form submissions to Salesforce. Marketers connect a form to a Pardot form handler or to Salesforce Web-to-Lead in the Control Panel, and map each Salesforce field to a form field, without touching code.

The addon adds two connectors to Statamic's form connections (Forms → your form → Connect), next to Email, Webhook and the Forms Pro integrations:

  • Pardot: Marketing Cloud Account Engagement form handlers.
  • Salesforce Web-to-Lead: creates a Lead in any Salesforce org.

How it works

Requirements

  • PHP 8.4+
  • Statamic 6.44+
  • A running queue worker. Submissions are sent on the queue, so a slow or unavailable Salesforce never delays the visitor.

Installation

composer require concept7/statamic-salesforce-connector

Pardot

  1. In Pardot, create a form handler under Marketing → Forms → Form Handlers. Give each field an external field name, for example Achternaam or E-mail.
  2. Leave the handler's success and error locations empty. Pardot then answers a rejected submission with its error page, which the addon detects and logs. With an error location set, a rejection is a redirect, and a redirect is logged as a failed delivery.
  3. In Statamic, open the form, go to Connect → Pardot and add a connection:
    • Form handler URL: the handler's URL. http:// and https:// are both accepted.
    • Fields: one row per external field name, with the value to send.

Web-to-Lead

  1. Find your Organization ID in Salesforce under Setup → Company Information → Salesforce.com Organization ID.
  2. In Statamic, open the form, go to Connect → Salesforce Web-to-Lead and add a connection:
    • Organization ID (oid).
    • Debug e-mail (optional): Salesforce mails the result of every submission to this address. Use it while setting up, and leave it empty in production.
    • Fields: standard field names such as last_name, email and company, or the id of a custom field (00N…).

Salesforce answers every Web-to-Lead post with a 200, also when it drops the lead. The addon can only detect connection errors and error statuses; use the debug e-mail to check a new setup.

Field values

  • Type @ in a value to insert a form field. A value can mix fields and text, for example @Street @Number@Addition.
  • Select, radio and checkbox fields send the stored option key, not the label people see. Salesforce picklists match on the key.
  • Several values (checkboxes) are joined with a semicolon: a;b. This is the Salesforce multi-select format.
  • A toggle sends 1 or 0.
  • Values are trimmed. Empty values are not sent, so a blank field never overwrites data Salesforce already has.
  • Conditions send a connection only when the submission matches. Disable a connection with its toggle.

Users need permission to configure forms to edit connections.

Delivery and logging

Each connection is sent by a queued job, with 3 tries and a backoff of 10, 60 and 300 seconds.

Response Result
2xx without Pardot error text Delivered
200 with Pardot error text Rejected: logged, not retried
3xx Rejected: logged with the redirect target (without its query), not retried
5xx, 4xx or no connection Retried; logged when the last try fails

A failed delivery is logged as an error with the form handle, the connector and the HTTP status. Field values and response bodies are never logged: they can contain personal data.

Testing

composer install
vendor/bin/pest

License

Salesforce Connector is commercial software. It requires a license from the Statamic Marketplace for use in production; local development is free. See LICENSE.md.