Hi, I am retrieving categories from an external database and displaying it in a dropdown element. But I need to have an option ‘All Categories’ as default where I can display data of all categories. Is there a way to do that? Thanks in advance
Values for dropdown are single values, so it is not possible to set the default value to multiple values…There is a way to make it possible though, by ‘playing tricks’.
- Dropdown should not be set to ‘should not be empty’…this allows when a user clicks onto the dropdown to see an empty choice at the top
- Use custom code to change the empty choice at the top to read ‘All Categories’…check on the forum for that as it is out there
- Make the Dropdown placeholder value be ‘All Categories’
- When running actions to capture the value, know that if the dropdown value is empty, the user is effectively selecting ‘All Categoris’
This topic was automatically closed after 70 days. New replies are no longer allowed.