Brilliant Web-to-Lead for Salesforce creates a solid integration between your WordPress install(s) and your Salesforce CRM account! People can enter a contact form on your site, and the lead (or case) goes straight into Salesforce CRM: no more copy pasting lead info, no more missing leads: each and
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.0 and PHP 7.4.
SourceWordPress plugins · Dec 5, 2026
01 / Source details
Aboutthistool.
Brilliant Web-to-Lead for Salesforce creates a solid integration between your WordPress install(s) and your Salesforce CRM account! People can enter a contact form on your site, and the lead (or case) goes straight into Salesforce CRM: no more copy pasting lead info, no more missing leads: each and every one of them is in Salesforce.com for you to follow up.
Features
You can fully configure all the different settings for the form, and then use a shortcode to insert the form into your posts or pages, or you can use the widget that comes with the plugin and insert the form into your sidebar!
Previous contributors:
Joost de Valk
ModernTribe
Daddy Donkey Labs
Filters and Hooks
Note:
These should be placed in your active theme functions.php or a functionality plugin.
Never edit a plugin directly (unless you understand the implications of doing so).
You can use Pluginception to create a custom plugin for these to make them independent of your theme: https://wordpress.org/plugins/pluginception/
Filters
salesforce_w2l_api_url
Change the API url the plugin posts data to. Passes the form type (lead or case)
HTML of the form before it’s returned to WordPress for display
salesforce_w2l_cc_user_from_name
Change from name (user confirmation)
salesforce_w2l_cc_user_from_email
Change from email (user confirmation)
salesforce_w2l_cc_admin_from_name
Change from name (admin notification)
salesforce_w2l_cc_admin_from_email
Change from email (admin notification)
salesforce_w2l_cc_admin_email_list
Adding this code to your functions.php file will add 3 emails to the list. You can add as many as you want and each will get an admin notification email.
add_filter('salesforce_w2l_cc_admin_email_list','salesforce_add_emails'); function salesforce_add_emails( $emails ){ //uncomment line below to remove site admin //unset($emails[0]); $emails[]='email@domain.com'; $emails[]='email2@domain.com'; $emails[]='email3@domain.com'; return $emails; }
salesforce_w2l_cc_user_email_content
salesforce_w2l_cc_admin_email_content
Allows you to filter (append, prepend, modify) the email message content sent to the user or admin(s).
add_filter('salesforce_w2l_cc_user_email_content','salesforce_filter_user_message', 10, 1); function salesforce_filter_user_message( $message ){ $message = 'Before the user message' . "\r\n\r\n" . $message . "\r\n\r\n" . 'After the user message'; return $message; } add_filter('salesforce_w2l_cc_admin_email_content','salesforce_filter_admin_message', 10, 1); function salesforce_filter_admin_message( $message ){ $message = 'Before the admin message' . "\r\n\r\n" . $message . "\r\n\r\n" . 'After the admin message'; return $message; }
salesforce_w2l_cc_admin_replyto_email
Filter the Reply-To email header (e.g. to allow replies to go to the form submitter)
salesforce_w2l_returl
salesforce_w2l_returl_{Form ID}
Allows you to filter the value of a field before it is output to dynamically populate it with a value, auto set it based on another value, etc.
Examples:
// Filter Return/Success URL on a specific form // salesforce_w2l_returl_{Form ID} add_filter( 'salesforce_w2l_returl_1_tester', 'salesforce_w2l_returl_1_tester_example', 10, 1 ); function salesforce_w2l_returl_1_tester_example( $returl ){ return 'http://123.com'; }
salesforce_w2l_success_message
salesforce_w2l_success_message_{Form ID}
Allows you to filter the contents of the success message before it is output to dynamically populate it with a value, auto set it based on another value, etc.
Examples:
// Filter Success Message on a specific form // salesforce_w2l_success_message_{Form ID} add_filter( 'salesforce_w2l_success_message_1_tester', 'salesforce_w2l_success_message_1_tester_example', 10, 1 ); function salesforce_w2l_success_message_1_tester_example( $success ){ return 'Testing 123'; }
salesforce_w2l_field_value
salesforce_w2l_field_value_{Form ID}_{Field Name}
Allows you to filter the value of a field before it is output to dynamically populate it with a value, auto set it based on another value, etc.
Note that the second filter requires you to replace {Form ID} and {Field Name} to be replaced with the relevant form id and field name.
If you need access to the field or form settings in your filter you can use:
// Pre-check a checkbox add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_precheck_example', 10, 3 ); function salesforce_w2l_field_value_precheck_example( $val, $field, $form ){ $form_id = 1; // form id to act upon $field_name = 'checkboxfield__c'; // API Name of the field you want to auto check if( $form == $form_id && $field_name == $field && ! $_POST ) return 1; // or whatever the value of your checkbox is return $val; } // Store HTTP referrer in a field (this is not 100% reliable as the browser sends this value to the server) add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_referrer_example', 10, 3 ); function salesforce_w2l_field_value_referrer_example( $val, $field, $form ){ $form_id = 1; // form id to act upon $field_name = 'referrer__c'; // API Name of the field you want to autofill if( $form == $form_id && $field_name == $field ){ if( isset( $_SERVER['HTTP_REFERER'] ) ){ return $_SERVER['HTTP_REFERER']; } } return $val; } // Autofill fields based on thew query string (using Google Analytics tracking variables in this example) add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_querystring_example', 10, 3 ); function salesforce_w2l_field_value_querystring_example( $val, $field, $form ){ $form_id = 1; // form id to act upon $field_name = 'source__c'; // API Name of the field you want to autofill $qs_var = 'source'; // e.g. ?source=foo if( $form == $form_id && $field_name == $field ){ if( isset( $_GET[ $qs_var ] ) ){ return $_GET[ $qs_var ]; } } return $val; } // Autofill a user's country based on IP add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_geoip_example', 10, 3 ); function salesforce_w2l_field_value_geoip_example( $val, $field, $form ){ // Based on this plugin: https://wordpress.org/plugins/geoip-detect/ // Adjust this code to the one used by your geo detection plugin if( !function_exists( 'geoip_detect2_get_info_from_current_ip' ) ) return; $form_id = 1; // form id to act upon $field_name = 'country__c'; // API Name of the field you want to autofill if( $form == $form_id && $field_name == $field ){ $userInfo = geoip_detect2_get_info_from_current_ip(); //$val = $userInfo->country->isoCode; // e.g. US $val = $userInfo->country->name; // e.g. United States } return $val; } // Autofill a date // https://codex.wordpress.org/Function_Reference/current_time // http://php.net/manual/en/function.date.php add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_date_example', 10, 3 ); function salesforce_w2l_field_value_date_example( $val, $field, $form ){ $form_id = 1; // form id to act upon $field_name = 'mydatefield__c'; // API Name of the field you want to auto check if( $form == $form_id && $field_name == $field && ! $_POST ) return current_time('Y-m-d'); // or whatever date format you want return $val; }
salesforce_w2l_form_action
Allows you to remove the form action.
// Remove Form Action add_filter( 'salesforce_w2l_form_action', 'salesforce_w2l_form_action_example', 10, 1 ); function salesforce_w2l_form_action_example( $action ){ return ''; }
salesforce_w2l_lead_source
Allows you to alter the lead source (per form or globally).
// Alter Lead Source add_filter( 'salesforce_w2l_lead_source', 'salesforce_w2l_lead_source_example', 10, 2 ); function salesforce_w2l_lead_source_example( $lead_source, $form_id ){ if( $form_id == 1 ) return 'Example Lead Source for Form #1 on page id #'.get_the_id(); return $lead_source; }
salesforce_w2l_post_args
Allows filtering of the wp_remote_post arguments (e.g. extend the timeout, increase redirect limit, etc).
add_filter( 'salesforce_w2l_post_args', 'salesforce_w2l_post_args_example' ); function salesforce_w2l_post_args_example( $args ){ $args['timeout'] = 10; // http timeout in seconds return $args; }
salesforce_w2l_post_data
Allows filtering of the post data before it is sent to SalesForce.
An example form generated with Brilliant Web-to-Lead for Salesforce (with optional CAPTCHA) -- both post and widget forms are shown in the TwentyEleven themeThe backend administration for Brilliant Web-to-Lead for SalesforceThe new form editor (multiple forms, hidden fields, add new fields, thanks URL, lead source per form)
02 / Source details
Gettingstarted.
01Upload the plugin folder to the /wp-content/plugins/ directory or install via the Add New Plugin menu
02Activate the plugin through the ‘Plugins’ menu in WordPress
03Enter your Salesforce.com Organization ID on the plugin configuration page.
03 / Source details
Frequently asked questions.
Does this plugin have any hooks or filters? Is there documentation?
Yes, quite a few.
Hooks & Filters Documentation
I’m not seeing any errors, but the entry didn’t get added to Salesforce!
To turn on in browser debugging, add a hidden field (enabled) named debug and set the value to 1 .
To turn on debugging via email, add a hidden field (enabled) named debugEmail and set the value to you@yourdomain.com (your email address).
Also check for debug logs at SalesForce to see if a validation rule is the culprit: Administration Setup | Monitoring | Debug Logs .
I’m not receiving new submission emails
99% of the time the plugin is sendign these… and the issue is at the WordPress or server level.
The Give team has an excellent article on diagnosing and troubleshooting email issues .
What are the built in field names? Not all the fields are working when I use the Field Label in the lead edit screen?
SalesForce is inconsistent in naming built in fields, and even misreports the names of some fields (like MobilePhone , which is actually mobile ) in the customize fields screen. Generating a Web to Lead form gets you the real names, but the list below should help as well.
Built in fields
Leads
Human Name API Name - - - - - - - - - - - - - - - - - - - - - - - - First Name first_name Last Name last_name Title title Website URL Phone phone Mobile mobile Fax fax Email email Address street City city State/Prov. state Zip zip Country country Description description Industry industry Rating rating Annual Rev. revenue Employees employees
Cases
Human Name API Name - - - - - - - - - - - - - - - - - - - - - - - - Contact Name ** name Email email Phone phone Subject subject Description description Company company Type * type Status * status Case Reason * reason Priority * priority Case Origin N/A (not settable via the WebToCase API) * = must use a value from the picklist defined in your install ** = note that this will be auto prefixed as 'sf_name" in form output and POST data
Other Useful Fields
Lead Source lead_source Email Opt Out emailOptOut Fax Opt Out faxOptOut Do Not Call doNotCall Lead Record Type recordType Campaign Campaign_ID Campaign Member Status member_status
Name may vary (these are lookup fields), generate a Web-to-Lead form with these fields included for the actual value
SIC Code Product Interest Primary Current Generator(s) Number of Locations
How do I setup Web to Lead/Case for my SalesForce Account?
Setting Up Web-to-Lead
Setting Up Web-to-Case
How do I setup a Web to Case form?
Choose Web to Case in the Form Settings (bottom of the form editor page).
Where do I find my Salesforce organization ID?
To find your Organization ID, do the following steps:
01Log in to your SalesForce.com account
02Go to Setup » Company Profile » Company Information
03You’ll find the Organization ID in the lower right hand corner of your screen
How do I use a SalesForce custom field?
Go to Setup » Customize » Leads » Fields If your custom field does not exist yet, create it now. Find the API Name for your field (e.g. Custom_Field_Example__c). If it doesn’t end in “__c” it’s not the API name and will not work. Add a new field to your form using the form editor on the plugin admin screen Enter the API Name as the field name (left most box), then fill out the other fields normally (make sure to enable the field!). Save your changes — new submissions will now post that custom field to SalesForce.
How do I use the checkbox field?
Like any other field. Note that it is a single checkbox, not a checkbox list (yet).
Note: You must provide a value for your checkbox. Generally 1 is what you want (unless you’re expecting something other than true/false in SalesForce). If you don’t provide a value, your checkbox will never get sent with the form data (and even if it did, it won’t “check” the box at SalesForce as “empty” = unchecked).
Checkbox lists and radio buttons will be in a future update.
How do I pre-check a checkbox?
Before you do, consider if a pre-checked checkbox (opt-out) is really what you want to do .
If you insist on proceeding anyways: see the Pre-check a checkbox example in Other Notes .
How do I use the select (picklist) field?
Hint: Use the form importer!
Use it like any other field — however you’ll need to specify the options (and optional values) for each field using the options box (far right). You’ll also need to use the “internal name” from Salesforce as your field name (see next FAQ).
The value box for a select list is the default value (the one selected on a fresh form).
/* Preferred format: */ // Use same data for display and value passed to SF one two three // Use different data for display and value passed to SF, require user to select something (assuming field is required) Select One| name1|value1 name2|value2 // Use different data for display and value passed to SF name1|value1 name2|value2 /* Legacy Format (does not allow the use of colons in names or values): */ //Use same data for display and value passed to SF one|two|three //Use different data for display and value passed to SF, require user to select something (assuming field is required) Select One: | name1:value1 | name2:value2 //Use different data for display and value passed to SF name1:value1 | name2:value2
Some useful options lists — you can remove any line(s) you don’t want/need:
Note: If state and country aren’t a valid combo, or the state doesn’t match the default country of your Salesforce install, your lead will likely be rejected — so be careful with these!
States / Provinces
Select One| State| AL|Alabama AK|Alaska AZ|Arizona AR|Arkansas CA|California CO|Colorado CT|Connecticut DE|Delaware FL|Florida GA|Georgia HI|Hawaii ID|Idaho IL|Illinois IN|Indiana IA|Iowa KS|Kansas KY|Kentucky LA|Louisiana ME|Maine MD|Maryland MA|Massachusetts MI|Michigan MN|Minnesota MS|Mississippi MO|Missouri MT|Montana NE|Nebraska NV|Nevada NH|New Hampshire NJ|New Jersey NM|New Mexico NY|New York NC|North Carolina ND|North Dakota OH|Ohio OK|Oklahoma OR|Oregon PA|Pennsylvania RI|Rhode Island SC|South Carolina SD|South Dakota TN|Tennessee TX|Texas UT|Utah VT|Vermont VA|Virginia WA|Washington WV|West Virginia WI|Wisconsin WY|Wyoming DC|District of Columbia AS|American Samoa GU|Guam MP|Northern Mariana Islands PR|Puerto Rico UM|United States Minor Outlying Islands VI|Virgin Islands, U.S. Province| AB|Alberta BC|British Columbia MB|Manitoba NB|New Brunswick NL|Newfoundland and Labrador NS|Nova Scotia NT|Northwest Territories NU|Nunavut ON|Ontario PE|Prince Edward Island QC|Quebec SK|Saskatchewan YT|Yukon
Countries
AF|Afghanistan AX|Åland Islands AL|Albania DZ|Algeria AS|American Samoa AD|Andorra AO|Angola AI|Anguilla AQ|Antarctica AG|Antigua and Barbuda AR|Argentina AM|Armenia AW|Aruba AU|Australia AT|Austria AZ|Azerbaijan BS|Bahamas (the) BH|Bahrain BD|Bangladesh BB|Barbados BY|Belarus BE|Belgium BZ|Belize BJ|Benin BM|Bermuda BT|Bhutan BO|Bolivia (Plurinational State of) BQ|Bonaire, Sint Eustatius and Saba BA|Bosnia and Herzegovina BW|Botswana BV|Bouvet Island BR|Brazil IO|British Indian Ocean Territory (the) BN|Brunei Darussalam BG|Bulgaria BF|Burkina Faso BI|Burundi CV|Cabo Verde KH|Cambodia CM|Cameroon CA|Canada KY|Cayman Islands (the) CF|Central African Republic (the) TD|Chad CL|Chile CN|China CX|Christmas Island CC|Cocos (Keeling) Islands (the) CO|Colombia KM|Comoros (the) CD|Congo (the Democratic Republic of the) CG|Congo (the) CK|Cook Islands (the) CR|Costa Rica CI|Côte d'Ivoire HR|Croatia CU|Cuba CW|Curaçao CY|Cyprus CZ|Czech Republic (the) DK|Denmark DJ|Djibouti DM|Dominica DO|Dominican Republic (the) EC|Ecuador EG|Egypt SV|El Salvador GQ|Equatorial Guinea ER|Eritrea EE|Estonia ET|Ethiopia FK|Falkland Islands (the) [Malvinas] FO|Faroe Islands (the) FJ|Fiji FI|Finland FR|France GF|French Guiana PF|French Polynesia TF|French Southern Territories (the) GA|Gabon GM|Gambia (the) GE|Georgia DE|Germany GH|Ghana GI|Gibraltar GR|Greece GL|Greenland GD|Grenada GP|Guadeloupe GU|Guam GT|Guatemala GG|Guernsey GN|Guinea GW|Guinea-Bissau GY|Guyana HT|Haiti HM|Heard Island and McDonald Islands VA|Holy See (the) HN|Honduras HK|Hong Kong HU|Hungary IS|Iceland IN|India ID|Indonesia IR|Iran (Islamic Republic of) IQ|Iraq IE|Ireland IM|Isle of Man IL|Israel IT|Italy JM|Jamaica JP|Japan JE|Jersey JO|Jordan KZ|Kazakhstan KE|Kenya KI|Kiribati KP|Korea (the Democratic People's Republic of) KR|Korea (the Republic of) KW|Kuwait KG|Kyrgyzstan LA|Lao People's Democratic Republic (the) LV|Latvia LB|Lebanon LS|Lesotho LR|Liberia LY|Libya LI|Liechtenstein LT|Lithuania LU|Luxembourg MO|Macao MK|Macedonia (the former Yugoslav Republic of) MG|Madagascar MW|Malawi MY|Malaysia MV|Maldives ML|Mali MT|Malta MH|Marshall Islands (the) MQ|Martinique MR|Mauritania MU|Mauritius YT|Mayotte MX|Mexico FM|Micronesia (Federated States of) MD|Moldova (the Republic of) MC|Monaco MN|Mongolia ME|Montenegro MS|Montserrat MA|Morocco MZ|Mozambique MM|Myanmar NA|Namibia NR|Nauru NP|Nepal NL|Netherlands (the) NC|New Caledonia NZ|New Zealand NI|Nicaragua NE|Niger (the) NG|Nigeria NU|Niue NF|Norfolk Island MP|Northern Mariana Islands (the) NO|Norway OM|Oman PK|Pakistan PW|Palau PS|Palestine, State of PA|Panama PG|Papua New Guinea PY|Paraguay PE|Peru PH|Philippines (the) PN|Pitcairn PL|Poland PT|Portugal PR|Puerto Rico QA|Qatar RE|Réunion RO|Romania RU|Russian Federation (the) RW|Rwanda BL|Saint Barthélemy SH|Saint Helena, Ascension and Tristan da Cunha KN|Saint Kitts and Nevis LC|Saint Lucia MF|Saint Martin (French part) PM|Saint Pierre and Miquelon VC|Saint Vincent and the Grenadines WS|Samoa SM|San Marino ST|Sao Tome and Principe SA|Saudi Arabia SN|Senegal RS|Serbia SC|Seychelles SL|Sierra Leone SG|Singapore SX|Sint Maarten (Dutch part) SK|Slovakia SI|Slovenia SB|Solomon Islands SO|Somalia ZA|South Africa GS|South Georgia and the South Sandwich Islands SS|South Sudan ES|Spain LK|Sri Lanka SD|Sudan (the) SR|Suriname SJ|Svalbard and Jan Mayen SZ|Swaziland SE|Sweden CH|Switzerland SY|Syrian Arab Republic TW|Taiwan (Province of China) TJ|Tajikistan TZ|Tanzania,
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati