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:
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)
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:
You can add to the $non_biz_domains to block other providers as well.
salesforce_w2l_form_html
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.
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).
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:
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:
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:
Examples:
salesforce_w2l_form_action
Allows you to remove the form action.
salesforce_w2l_lead_source
Allows you to alter the lead source (per form or globally).
salesforce_w2l_post_args
Allows filtering of the wp_remote_post arguments (e.g. extend the timeout, increase redirect limit, etc).
salesforce_w2l_post_data
Allows filtering of the post data before it is sent to SalesForce.
salesforce_w2l_show_admin_nag_message
Suppress the organization id missing nag message (return false).
Actions
salesforce_w2l_before_submit
Allows you to do something (read only) with the post data before it’s submitted to SalesForce.
e.g. Send it to another API, log it to a database, etc.
If you need to change the data, use the salesforce_w2l_post_data filter.
salesforce_w2l_error_submit
Allows you to do something (read only) with the post data when there is an error submitting to SalesForce.
e.g. Notify someone via email, log it somewhere, etc.
salesforce_w2l_after_submit
Allows you to do something (read only) with the post data after it’s submitted to SalesForce.
e.g. Send it to another API, log it to a database, etc.
salesforce_w2l_get_prefixed_inputs
Allows you to add to or change the list of fields that are auto prefixed by the plugin to avoid collisions with WP Query reserved request parameters
salesforce_w2l_input_name_prefix
Allows you to change the default field name prefix (_sf) used to avoid collisions with WP Query reserved request parameters.

评论0