Default parameter value removed from control after another value is selected

My use case is that I want to be able to filter a list of locations based on whether or not the location has any associated contacts - Yes (associated contacts > 0), No (associated contacts = 0), or All. The problem is my parameter default disappears so I can’t go back to selecting all.

Setup
There is a Dropdown parameter control with two available values - Yes or No. The parameter MUST have a default value defined because I’m using it in a calculated field in order to be able to apply a filter, so my default value is “Show All”. Because I have a default value, I have opted to hide the “Select all” option from the control.

Results
The default value is automatically selected on load - so far so good, I want all of the locations to be shown by default and this is working. The problem I have is that my default of “Show All” disappears and can no longer be selected as soon as either Yes or No is selected. This is bad because I have hidden the “select all” from the control, and now the user can’t go back to showing everything.
After selection
noDefault

If I don’t hide the “select all”, then there are two options in the dropdown that say “select all” (at least for part of the time, after page load and before the user selects something else), and this is also bad.

Either way I think it’s a bad user experience - either “select all” is essentially duplicated, or I lose the ability to “select all”. So, can the parameter default value remain in my list of options, so that I can hide the other select all? Or, is there another way I can/should set this up so that the default value doesn’t disappear like that?

Thank you!

1 Like

Hi @ltaylor,

I see that you have created a default value in the parameter as ‘Show All’, but just wanted to make sure does your calculated field have ‘Show All’ value?

image

Can you look at the below gif i have created and let me know if that is understandable and helped you!

I have selected Yes, No and then refreshed the page to see if i get the default value ‘Show All’ and I see all the values.

FilteredContacts

Thank you,
Shravya

I see what you’re getting at…and thank you for the response! That’s slightly different than how I have it set up (I wanted to upload several pictures on the setup but the forum wouldn’t let me) but I think that will work. I will try and mark as solution if so.