Drop down default value is not working

I used the drop-down control default filed as 2024 for the year filter, the front-end shows that it picked 2024 when I refresh the page, but the data doesn't change until I open and do the select my self.

DZlAmir_0-1730386354030.png

DZlAmir_1-1730386422631.png

 

 

Solved Solved
0 7 1,357
1 ACCEPTED SOLUTION

I encountered the same issue and thanks to a colleague, I have found a fix to this ! So the issue is that the filtering parameter is a date data type while the default value is in a string data type. Way around this is to create a filtering parameter using calculated field that is in a string data type.

e.g. Case when Year (creation_date) = 2024 then '2024' else '2025' end.

Using the above calculated field as the new filtering parameter, the default value should now work. 

View solution in original post