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 behavior issue

SA-29433

Summary



Developer has configured a place holder as 'Select'  for drop down. Developer want to show 'No results were found' when they dont have values instead of  'Select'.

Error Messages



No error message

Steps to Reproduce

  1. Configure a dropdown control with a placeholder as ' Select ' in a section.
  2. Observe: dropdown source has no values still showing.
  3. Select place holder.


Root Cause



As per the design it is an expected behaviour in 7.x.

Resolution

Suggested user to configure the dropdown in the following way to achieve user requirement.

  1. Create two dropdowns instead of single one.One would be displayed when records are present and the other when there are no records to display.
  2. Add visibility condition(expressions) for the dropdowns. 'LengthofPageList(Name of the page)' > 0 for first one and  'LengthofPageList(Name of the page)' = 0 for second one. 
  3. Include place holders as "Select" to first one and "No Results are found" to second one. 

Published October 25, 2016 - Updated December 2, 2021

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