Lead Gen & CRM
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Creating Lead Score Widgets

Article: 000050257
Updated: July 18, 2024

Build a widget to display lead scores as visual temperature bars

When Salesforce and Lead Gen & CRM are synchronized, you can build a widget within Salesforce to display the lead score data that is aggregated in Lead Gen & CRM. 


Article Contents

 
 
Users:
Administrators 
Company Managers  
Marketing Managers  
Sales Managers  
Salespersons  
Jr. Salespersons  


Regarding Account Connections

Before you can create widgets, you must connect your Salesforce account with your Lead Gen & CRM account. Additionally, you must be an administrator in both your Salesforce and Lead Gen & CRM accounts.
 



Creating a Numeric Custom Field

Two custom fields must be built within Salesforce. The first will contain the numeric lead score value mapped from Lead Gen & CRM. 

To create a numeric lead score custom field:

  1. Log in to Salesforce and click Setup in the top-right corner of Salesforce.
  2. In the Build section, click Customize > Leads > Fields in the left menu.
  3. Add a new field in the Lead Custom Fields and Relationships section.
  4. Select the Number field type.
  5. Click Next.
  6. Label the field as Lead Score.
  7. Set the lead score parameters.
  8. Complete the Field-Level Security.
  9. Add the field to a page layout. 


 

Note: Only the non-decayed lead score will pass into Salesforce. Any decay events will not pass over, so you may see a lower lead score for cold leads in Lead Gen & CRM than you do in Salesforce. Field-Level Security controls what profiles will have access to this field. The field is hidden from any profile that is not checked on this screen.



Numeric Lead Score Parameters

The following are the required lead score parameters for the numeric custom field:
 

Parameters Description
Length Set to the default of 18 (unless you have Custom Salesforce rules
for Number fields).
Decimal Places Set to the default of 0.
Field Name Set to its auto-populated value.
Description Field optionally left blank. 
Help Text Field optionally left blank. 
Required Checkbox left unchecked.
Unique Checkbox left unchecked. 
External ID Checkbox left unchecked. 
Default Value Left blank. 

 



Mapping from Lead Gen & CRM to Salesforce

After creating the required custom fields in Salesforce, you will need to map the field values in Lead Gen & CRM. This must be done before you can create a custom field for lead score temperatures.

To enable mapping, do the following:

  1. Within Lead Gen & CRM, click Settings.
  2. Click Salesforce, located under Third-Party Settings in the left panel.
  3. Click the Lead Mappings tab.
  4. Locate the Lead Score CRM field that was created in Salesforce.
  5. Select Lead Score in the middle column drop-down menu.
  6. Select Always use Lead Gen & CRM value in the right column drop-down menu.
  7. Set the Lead Score Widget field as Unassigned/Do not include.
  8. Click Save Mappings.


 

Note: In the Lead Mappings tab, the left column pulls in all of the mappable CRM fields. The middle column shows the Lead Gen & CRM field that the Salesforce field will be assigned to. The right column handles how data will be updated.



Regarding Lead Score Syncing

In order for these updates to be reflected immediately, you must make an update in the lead records by saving a field on the lead's contact record.

The sync runs every 15 minutes. The next time the sync runs, lead score will pass into the lead score field in Salesforce. The lead score widget will populate with the temperature bar as well.
 



Creating a Temperature Custom Field

Once you have mapped fields between Lead Gen & CRM and Salesforce, you can create a special custom field. This custom field is a formula field that displays the lead score as a visual temperature bar. This field requires both Lead Gen & CRM's widget formula and a custom field in Salesforce.

Note: Constant Contact offers Professional Services to assist with custom coding.
 

Obtaining Lead Gen & CRM Widget Formula

To obtain the widget formula, do the following:

  1. Log in to Lead Gen & CRM and click Settings.
  2. Click Salesforce, located under Third-Party Settings in the left panel.
  3. Click the Widgets tab.
  4. Copy the formula on the page.


 

Creating the Custom Field

To create this custom field, do the following:

  1. Log in to Salesforce and click Setup in the top-right corner of Salesforce.
  2. In the Build section, click Customize > Leads > Fields in the left menu.
  3. Add a new field in the Lead Custom Fields and Relationships section.
  4. Select the Formula field type.
  5. Click Next.
  6. Set the custom field parameters.
  7. Click Next.
  8. Paste the Lead Gen & CRM widget formula into the text box.
  9. Click Next.
  10. Complete the Field-Level Security.
  11. Confirm the page layouts where this field will live.



Widget Formula Custom Field Parameters

The following are the required custom field parameters for the widget formula:
 

Parameters Description
Field Label Label as Lead Score Widget.
Field Name Set to the auto-populated value.
Formula
Return Type
 Set as Text.
 


Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center