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
- Configure a dropdown control with a placeholder as ' Select ' in a section.
- Observe: dropdown source has no values still showing.
- 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.
- 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.
- 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.
- Include place holders as "Select" to first one and "No Results are found" to second one.
Published October 25, 2016 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.