Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Dropdown control issues while displaying IN state code



When implementing two letter state codes in a dropdown list, Indiana displays as 'in' rather than 'IN'. This occurs when the data is sourced from a data page or from a local list. This does not occur in any control other that dropdown control.

Error Messages

Not Applicable

Steps to Reproduce

1. Define a Property for state code.
2. Define the local List / Data table for USA state codes.
3. Define a section to display the state codes as a dropdown.
​4. Observe that the state code 'in' is displayed instead of 'IN'.

Root Cause

'in' value is a pyCaption fieldvalue (ref : @baseclass • pyCaption • in) which holds 'in' (lower case) value. 
For labels or values, fieldvalue is used so that the you can provide provision for localization. This is an expected behaviour. 


This issue is resolved through the following Local-change:

Create a fieldvalue 'in' of type pyCaption in your class and set the value to camelcase 'IN'.

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us