Brilliant Web-to-Lead for Salesforce free WordPress plugin
Description
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) add_filter( ‘salesforce_w2l_api_url’, ‘my_w2l_api_url’, 10, 2 ); function my_w2l_api_url( $url, $form_type ){ return ‘https://my.custom-api-url.com/something/’; } sfwp2l_validate_field Provide your own validation logic for each field. An error array is passed in, along with the field name, submitted value, and field configuration (type, default value, required, etc). Here’s an example of blocking common free email providers: add_filter(‘sfwp2l_validate_field’,’block_non_biz_emails’, 10, 4); function block_non_biz_emails( $error, $name, $val, $field ){ if( $name == ’email’ ){ $non_biz_domains = array( ‘gmail.com’, ‘yahoo.com’, ‘hotmail.com’, ‘aol.com’ ); $domain = array_pop(explode(‘@’, $val)); if( in_array( $domain, $non_biz_domains ) ){ $error[‘valid’] = false; $error[‘message’] = ‘Please enter a business email addresss.’; } } return $error; } You can add to the $non_biz_domains to block other providers as well. salesforce_w2l_form_html HTML of the form before
Features
Cost:
Free
Provider:
BrilliantPlugins
Popularity:
Low
WPMarket

