Dropdown populated with Week Numbers?

What would be the easiest way to have a dropdown that displays values 1 through 52 in a usable fashion?

I am using this dropdown to filter a list of results in a table.

I can use an option set, but that does create issues when trying to match the options to numbers as Bubble considers an option to be neither text nor integer.

Going from option to number is fine using convert to number, but the other way seems more tricky.

image

I can’t seem to find a way to set the default value of the dropdown to the current week number because it expects an option.

This was the only workaround I could come up with. A full option set of all 52 values and filter the whole list to match the current week.

image

image

Why not just use a list of number?

This topic was automatically closed after 70 days. New replies are no longer allowed.