Support Article
Placeholder of drop downs display incorrectly
SA-51559
Summary
Dropdown placeholder displays incorrectly on providing a value that is either a property reference or a field value.
For example,
Output 1: Provide property reference as the value,
When the property has a value, the placeholder displays correctly.
When the property value is Null, the property reference (property name: ".Placeholder") displays.
Output 2: Provide a field value which includes a property reference ({.Placeholder})
When the property has a value, then the placeholder displays correctly.
When the property value is Null, the field value name (Field value "AddressPlaceholder") displays.
Error Messages
Not Applicable
Steps to Reproduce
- Create a section and include a dropdown control
- Configure the dropdown to provide a placeholder (use any control that allows providing a placeholder).
- Provide a property reference or a field value (with property reference embedded) for the placeholder.
- Set value to the property and verify (Output 1).
- Set property value to blank and verify (Output 2).
Root Cause
A defect in Pegasystems’ code or rules.
For localized placeholder values, pega.clientTools.getLocalizedTextForString API was called when the currentContext.getLocalizedValue returned an undefined or empty value. pega.clientTools.getLocalizedTextForString API returned the actual property name. Hence the property name was passed if the property value was empty.
Resolution
Apply HFix-41458.
Published March 22, 2018 - 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.