Hey, so a slightly nuanced question here:
I have made a list of learning resources for the users.
I have added multiple filters so they can filter the learning resources based on its level (beginner, intermediate, advanced), reading time, and category.
I want the user to be able to filter the level of the resources using buttons or toggles.
Kinda like this:
I have had to use toggles because I couldn’t work out how to make the button stay highlighted when clicked, and I couldn’t add an action for when it is unselected.
It looks like this:
And it kinda works, except the user’s input which is stored in a database field doesn’t refresh when the page is reloaded (I haven’t yet been able to work out how to do that), so the values they entered last time stays when they re-open the page.
Is there a way I can do this with buttons instead, like what I’ve shown above.
In fact, I’m aware that how I’ve done it probably isn’t the best way, so how would you go about doing this (just got adalo last week so still a newbie!)?
Also, is there a way I can clear a database field’s value every time a page is refreshed?
Thanks a lot!