How to reset a parameter control to default value when user selects a value in another parameter control?

Hello experts, I have 2 parameter controls through which user can filter the dashboard. Let’s say Parameter 1 is “Country Code” and Parameter 2 is “Country Name”. So if the user selects something from Parameter 1(Country Code) then whatever selection that was made previously in Parameter 2(Country Name) should reset to default and the same should happen vice-versa.

Example:

Step 1:
Parameter 1(Country Code) Default value = “Select a Country Code”
Parameter 2(Country Name) Default value = “Select a Country Name”

Step 2:
User selects a value, let’s say “US” from Parameter 1(Country Code)

Now, the status of
Parameter 1(Country Code) = “US”
Parameter 2(Country Name) = “Select a Country Name”

Step 3:
User selects a value, let’s say “Canada” from Parameter 2(Country Name)

Now, the Parameter 1(Country Code) should automatically reset to default value which is “Select a Country Code” and the status of both the parameters should be as below,

Parameter 1(Country Code) = “Select a Country Code”
Parameter 2(Country Name) = “Canada”

And similarly if the user again selects a country code from parameter 1, let’s say “UK” then Parameter 2(Country Name) should automatically reset to “Select a Country Name” and the status of both parameters should be as below,

Parameter 1(Country Code) = “UK”
Parameter 2(Country Name) = “Select a Country Name”

Please guide me how to achieve this if this is feasible. If this is not feasible, kindly suggest if there is any other way around. Thank you.

Hi,

This will help you see the tutorial in details

Let me know if any support required.

Regards,
Naveed Ali

1 Like

Hi @Naveed , I have done the same way but my use case is different. I need the parameter to reset to default value when the user selects other parameter as explained in my question. Please let me know if that is feasible.

@duncan , Do you have any work around for this. Kindly suggest if any.

hi @krishna.c

i am wondering if you have tried to configure ‘show relevant value only’ when you added control for the parameters? that might be able to reset the value depending on the selection made the other control. the setting option is described in here.

kind regards,
Wakana

Hi @Wakana , Thank for the response. I have tried that but when the user wants to select any value from the parameter where the relevant values setting is made, it is required to reset the other parameter (As per my understanding). Hence I was looking for resetting to default value automatically in one parameter based on the selection in another parameter.

hi @krishna.c ,

yes you are correct. it requires manually to reset to get to the default value. I will file your request as feature request.

kind regards,
Wakana

3 Likes