PatronManager Help

How to Use State and Country Picklists

Updated on

Use this link to share with your colleagues:

How to Use State and Country Picklists: https://help.pm.leapevent.tech/a/1501012

With Salesforce's State & Country/Territory Picklists, you can make your PatronManager sites, like the Public Ticketing Site (PTS) and Donation Forms, easier for your patrons and donors around the world to use. By using State and Country picklists, your donors and ticket buyers can choose their country and then select a relevant state value from a list specific to that country.

As a bonus, these picklists will also help standardize all of the state and country values on your Contact and Account records and clean up your existing data.

In this article:

  1. We'll take you through setting up this feature 
  2. Take the optional step to make the 2-letter State/Province code available on reports
  3. Finally, we have some FAQs

Getting State & Country/Territory Picklists set up should take 1-2 hours, depending on how much customization you'd like to do and how much data you have.

Enable State and Country Picklists

First, we'll define the state and country values we wish to use, clean up our existing data, and then enable the feature.

Make sure that you qualify any unqualified Contact records before enabling State and Country picklists!

1. But first, let's adjust some settings

1.1. Head to PatronTicket Settings

In the PatronTicket Hub, go to PatronTicket Settings

1.2. Click "Edit"

Click Edit

1.3. Clear the Default Country field

Remove the value in the Default County field

1.4. Click "Save"

Save your changes

1.5. Head to Setup

Use the Gear icon to go to Setup

1.6. From Setup, go to the Object Manager tab and find and select "Contact"

Find and select Contact in Object Manager
Find and edit New under Buttons, Links, and Actions

1.8. Check your Override Properties

Check your Override Properties

If your Override Properties match these, then you're good to go!

  1. Salesforce Classic Override: No override (use default)
  2. Lightning Experience Override: Use the Salesforce Classic override
  3. Mobile Override: Use the Salesforce Classic override

If your Override Properties do not match, then follow the steps in How to Enable the "Display Custom Fields When Creating a New Contact" Feature, then return here.

2. Give PatronManager access to the picklists

In this step, we'll give PatronManager access to the picklists and ensure they're available on the Public Ticketing Site, Donation Forms, and Signup Forms once we activate them.

2.1. In Setup, go back to the Home tab and use the Quick Find to find and select "Sites"

2.2. Click "Patron Donate"

Click Patron Donate

2.3. Click "Public Access Settings"

Click Public Access Settings

2.4. Click "Edit"

Click Edit

2.5. Scroll down to the "Standard Object Permissions" section and check the "Read" box for "Contacts"

Check Read for Contacts under Standard Object Permissions

2.6. Click "Save"

Click Save

2.7. Scroll down to the "Standard Field-Level Security" section and click "View" next to "Contact"

Click View for Contact under Standard Field-Level Security

2.8. Click "Edit"

Click Edit

2.9. Make sure "Read Access" is checked for the "Mailing Address" field

Check Read Access for Mailing Address

2.10. Click "Save"

Click Save

2.11. Go back to "Sites"

Go back to Sites

2.12. Click "Signup Form"

Click Signup Form

2.13. Click "Public Access Settings"

Click Public Access Settings

2.14. Click "Edit"

Click Edit

2.15. Scroll down to the "Standard Object Permissions" section and make sure the "Read" box for "Contacts" is checked

Check Read for Contacts under Standard Object Permissions

2.16. Click "Save"

Click Save

2.17. Scroll down to the "Standard Field-Level Security" section and click "View" next to "Contact"

Click View for Contact

2.18. Click "Edit"

Click Edit

2.19. Make sure "Read Access" is checked for the "Mailing Address" and "Other Address" fields

Check Read Access for Mailing Address and Other Address

2.20. Click "Save"

Click Save
3. Define values

3.1. Go back to the Home tab and search for and click on "State and Country/Territory Picklists"

Find and click State and Country/Territory Picklists

3.2. Click on "Configure States, Countries, and Territories"

Click 1. Configure States, Countries, and Territories

3.3. Check that the default values match your preferred address format

In most cases the default values should be fine, but you may wish to double-check, particularly for your home country. For example, the default country name for the US is "United States" - if you prefer the Country value for address in the US to show the country as "USA", scroll down and click "Edit" next to "United States" and make that change.

Check the Countries/Territories list

If you choose to edit the Country value, make sure that the Country/Territory Name is the exact same as the Integration Value.

3.4. Set your Default Country/Territory

This should be wherever your organization is located.

Set your default Country/Territory

3.5. Save!

Save

You have the option to hide or deactivate Countries/Territories in the list. Typically we recommend keeping them all active and visible--you never know where you might find patrons, especially if you offer Virtual Events!

If you prefer to hide options from the list, you can uncheck the "Visible" box, but leave them active.

4. Scan existing data

4.1. Click on "State and Country/Territory Picklists" again

Click State and Country/Territory Picklists

4.2. Click "Scan for state and country/territory data"

Click Scan for state and country/territory data

4.3. Click the button to start the scan

Click Scan for state and country/territory data

4.4. Wait for the scan to complete

You don't have to wait on the page; as it says on the screen, you'll receive two emails when the scan finishes. Depending on how much data you have in your PatronManager account, this might take a while.

Waiting for scan screen

Refreshing or returning to this page later will show you the current scan progress, and when it's finished you'll see the last scan date:

Scan completed screen

4.5. When complete, you should have two emails:

You may need to check your spam folder; the "Last scan completed" date should correspond to when the emails were sent.

Emails after the scan

Once you've received these emails, move on to the next step.

5. Migrate existing data

We're not going to do anything with the "Address Customization Scan - Success" email at this time, but there's an FAQ about it at the end of this article. You can ignore it for now!

Click the link in the Address Data Scan email

5.2. Select the Country/Territory Values that you'd like to change and what to change them to, then click "Save to Changelist"

Map your Country/Territory Values

This tells Salesforce to change the selected Country/Territory Values to the new, standardized Country value that you selected.

So, for example, here we selected "UNITED STATES," "US," and "USA" to map these values to "United States."

Then, we would select the next set of country options to map. Continue country by country until you've cleared out all of your existing country values in the top section.

Be careful while creating your Country mappings! If you map any values incorrectly, this can lead to bad data in your system that may be difficult to fix later.

After clicking "Save to Changelist," the values you selected will appear in the Changelist section.

Changelist values

5.3. Once you've mapped all of your values, click "Next"

Click Next

5.4. Select the State Values you'd like to change and what you'd like to change them to, then click "Save to Changelist"

Map your State values

This time, this step tells Salesforce to change the selected State Values to the new, standardized State value from the picklist.

So, for example, here we selected "NEW YORK," NY," "NY," and "NY" to map these values to "New York."

Then, we would select the next set of state options to map, like "CA" and "CALIFORNIA" to "California." Continue state by state until you've cleared out all of your existing state values in the top section.

Be careful while creating your State mappings! If you map any values incorrectly, this can lead to bad data in your system that may be difficult to fix later.

After clicking "Save to Changelist," the values you selected will appear in the Changelist section.

Changelist values

5.5. Once you've mapped all of your values, click "Next"

Click Next

5.6. Review your changes, then select one of the options

Click to finish or make changes

Triple-check your mappings! Incorrect mappings can corrupt your existing address data.

  1. If you find that you need to change some of the mappings you created in the Changelists, click "Previous" to go back and adjust them
  2. If you're done with this step, but not ready to turn this on, click "Finish"
  3. If you're done and ready to enable State and Country/Territory Picklists, click "Finish and Enable Picklists"
6. Turn it on

Have you qualified all of your unqualified Contacts? If you're not sure or if you got some new ones since the last time you checked, go qualify those first!

6.1. If you previously clicked "Finish," then you'll need to click "Enable Picklists for Address Fields"

Click Enable Picklists for Address Fields

If you clicked "Finish and Enable Picklists" then you can skip this step.

6.2. Wait for deployment to complete

Wait for deployment

Depending on how much data you have in your PatronManager account, this might take a while.

6.3. Refresh the page periodically to make sure deployment is successful

When deployment iscomplete, a Disable State and Country/Territory Picklists section will appear

Refreshing or returning to this page later will show you if State and Country/Territory Picklists were enabled. You'll also see the option to disable this feature in the future, if you want to.

Optional: Make the two-letter State/Province code available for reports

By default, when you enable State and Country/Territory Picklists, the Mailing State/Province field will be the full name of the state/province, rather than a shortened version.

Default State fields

If you'd like to be able to pull the two-letter codes into your reports to create mailing lists, we recommend building a simple formula field on your Accounts and Contacts and pulling the two-letter codes into this new field to add to your reports.

Let's make this happen!

1. Go to Setup

Go to Setup

2. In Object Manager, find and select "Contact"

Find and select Contact in Object Manager

3. Go to Fields & Relationships and click "New"

Create a new Field in Fields & Relationships

4. Select "Formula" as your field type, then click "Next"

Create a Formula Field Type, then click Next

5. Name your field, then click "Next"

Name your New Custom Field
  1. Field Label: Mailing State/Province (2-letter)
  2. Field Name: This will auto-fill
  3. Auto add to custom report type: Checked
  4. Formula Return Type: Text
  5. Click "Next"

6. Create your field, then click "Next"

Creat your New Custom Field, then click Next
  1. Formula Editor: TEXT(MailingStateCode)
  2. Description: 2-letter State/Province
  3. Help Text: A 2-character version of the State or Province.
  4. Blank Field Handling: Treat blank fields as blanks
  5. Click "Next"

7. Keep all the settings on this page and click "Next"

Click Next

8. Decide whether you'd like this field to appear on your Contact records

If you want to see this 2-letter code on your Contact pages, select all Page Layouts except for TBQ Contact, then click "Save."

To see this field on your Contact pages, select all Page Layouts except TBQ Contact

If you don't want to see this 2-letter code on your Contact pages and only have it available for reports, deselect all Page Layouts, then click "Save."

To leave this field off your Contact pages, deselect all Page Layouts

9. Go back to Object Manager

Click back to Object Manager

10. Find and select "Account"

Find and select Account

11. Go to Fields & Relationships and click "New"

Create a new Field in Fields & Relationships

12. Select "Formula" as your field type, then click "Next"

Create a Formula Field Type, then click Next

13. Name your field, then click "Next"

Name your New Custom Field
  1. Field Label: Billing State/Province (2-letter) or Shipping State/Province (2-letter)
    • This will depend on whether you use the Billing Address or Shipping Address fields in your system. In this example, we'll use the Billing Address field.
  2. Field Name: Leave blank; this will auto-fill
  3. Auto add to custom report type: Checked
  4. Formula Return Type: Text
  5. Click "Next"

14. Create your field, then click "Next"

Creat your New Custom Field, then click Next
  1. Formula Editor: TEXT(BillingStateCode) or TEXT(ShippingStateCode)
    • This will depend on whether you chose to use the Billing Address or Shipping Address field in step 13. In this example, we're using the Billing Address field.
  2. Description: 2-letter State/Province
  3. Help Text: A 2-character version of the State or Province.
  4. Blank Field Handling: Treat blank fields as blanks
  5. Click "Next"

15. Keep all the settings on this page and click "Next"

Click Next

16. Decide whether you'd like this field to appear on your Account records

If you want to see this 2-letter code on your Account pages, select all Page Layouts except for TBQ Account, then click "Save."

To see this field on your Account pages, select all Page Layouts except TBQ Contact

If you don't want to see this 2-letter code on your Contact pages and only have it available for reports, deselect all Page Layouts, then click "Save."

To leave this field off your Account pages, deselect all Page Layouts

Now, when you create a report for mailings from your Contacts or Accounts, you'll be able to add your new fields in!

Contact Report Example
Account Report Example

Frequently Asked Questions (FAQs)

What if a Donation Form or Signup Form doesn't have the Country field on it?

If your Donation Form or Signup Form doesn't have the Country field on it, the form will display the State picklist based on the Default Country/Territory that you define.

If you'd like donors or signups to be able to select their country, which we recommend, you will need to include the Country field on your forms.

What if a User or patron selects a Country that doesn't have any states or provinces?

If a User or patron selects a Country that doesn't have any states or provinces, like Andorra or Monaco, the State field will be grayed out and they will be able to continue without selecting a State.

Why can't I add my two-letter State/Province field to this report?

If you don't have your new two-letter State/Province fields available to add to one of your reports, you'll need to modify the Report Type in Setup and add your new fields to the layout.

We have instructions on how to add custom fields to Report Types for you!

What's in the Salesforce.com Address Customization Scan - Success email I received?

This is one of the emails you receive when you scan your existing data while enabling State and Country Picklists.

Salesforce.com Address Customization Scan - Success email

As part of creating these new State and Country picklist fields, Salesforce provides a scan that shows all the places your system currently references the original State and Country fields. These legacy text fields will update to match the values in your new picklist fields over time. That means it's fine to keep using these text fields in List Views, informational reports, and email lists.

If there are existing reports that you use to generate mailing lists, though, you should update those to use the new picklist fields, along with your custom State Code field. This Salesforce.com Address Customization Scan - Success email can help you find these reports!

Use the scan results to find those mailing list reports

When you click the link in the email, it will bring you to a Document record in your PatronManager account. If you then click "View File," the file itself will open in another tab.

Click View File

Scroll down until you see the Report section, which shows you the reports using the legacy text fields:

Scan Document with changes

Keep in mind that you won't need to update all the reports it shows - only the ones that you use to create mailing lists.

As a bonus, this document even has links to help you get to the reports that need updates faster!

There are other elements of PatronManager and Salesforce that reference these legacy fields, but don't worry, PatronManager also knows about the new picklist fields and will handle the new values accordingly.

Can I update my State and Country picklist settings after activating the feature?

You can update your settings after enabling State and Country/Territory picklists if you want to change the default country or rename, activate, or deactivate state values.

To avoid Confirmation Exceptions, if you change any Country/Territory Names, make sure to also update the Integration Value! The Country/Territory Name and Integration Value must match exactly.

If you do make any changes to your State and Country picklist settings, you'll also need to click the Refresh button to Refresh Cached Settings in your PatronTicket Settings tab.

How do I Refresh Cached Settings?
1. Go to PatronTicket Settings
2. Scroll to the Payment, Fee, and Delivery Settings section and click Refresh
You'll see a message indicating that the refresh was successful
Why are Confirmation Exceptions happening after changing a Country name?

If you receive Confirmation Exceptions after changing a Country name, you may see an error message like this:

Error Message

If you see this error message, then it means that the Country/Territory Name and Integration Value do not match for one of your countries.

To fix this, you'll need to go to Setup and adjust the Integration Value for your countries to match the Country/Territory Name exactly by following steps 3.1 to 3.3 here.

Previous Article How to Update Your Image URLs When You Turn on My Domain
Next Article How to Add Values to the State Picklist
Still Need Help? Continue to the Client Community