Support Article
Dropdown control issues while displaying IN state code
SA-10416
Summary
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.
Resolution
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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.