Problem with State/Province Code showing the wrong 'state' in a template field

Hi Bill~

I believe the problem is actually stemming from how Salesforce handles the data. When you use the state/country picklist, the states are dependent on the country. When you change the country, your options for the states also change. Unfortunately, when there is a state in the new country that has the same state code, it will automatically change to that state. See my example below.

Here is the correct state info based on a country selection of the U.S.

However, when I change the country to Italy, notice that 2 things happen.

  • The billing state gets overriden to None because there isn’t a state in Italy that has TX as its state code.
  • The shipping state changed to Palermo because Palermo has the same state code as Pennsylvania.

This faulty data, then, gets passed into your Skuid page as well. We will open up a case with Salesforce about this issue and let you know what we find out.

Hope this clarifies the problem.

Thanks!
Karen