Pardot Knowledge Base

Adding Rating Stars to Your Salesforce Lead and Contact Layouts

Last Updated: Apr 26, 2016 | Print this Article
  The task in this article covers functionality available in Salesforce, and is given for your reference only. Pardot Support is not able to help configure or troubleshoot issues with rating stars.
Using a custom field, you can add a Pardot star rating to your Leads and Contacts in Salesforce.
The example in this article is based on the Pardot prospect score field, but you can have this run on any field in Salesforce. For example, you could change it to mimic the grade or a status field. You would just need to change the formula and the field it matches.

Once completed, it will look something like this:

To set this field up, you just need to create a formula custom field in Salesforce:
  1. Navigate Setup > Customize > Leads (or Contacts) > Fields.
  2. Scroll down and click New to add a lead/contact custom field.
  3. Set the Data Type to Formula.
  4. Click Next.
  5. Enter Pardot Rating in the Field Label.
  6. Set the Formula Return Type to Text.
  7. Click Next.
  8. Choose Lead form the Select Field Type dropdown.
  9. Paste this formula in the text area and click Next:
    IF(pi__score__c<1, "/img/samples/stars_000.gif",
    IF(pi__score__c<50, "/img/samples/stars_100.gif",
    IF(pi__score__c<100, "/img/samples/stars_200.gif",
    IF(pi__score__c<150, "/img/samples/stars_300.gif",
    IF(pi__score__c<200, "/img/samples/stars_400.gif", "/img/samples/stars_500.gif"
  10. Set your field-level securities and click Next.
  11. Add the custom field to page layouts.
  12. When finished, click Save.
Repeat these steps to add star ratings for Leads and Contacts.

Need more? Start a conversation with other Pardot users in the Trailblazer Community