On my site, users input their birthday, from which I use a computed field to calculate their age. Then, based on that age, I use rules to add a taxonomy term to their profile to classify them into one of the following age groups:
I have a view that allows members to search other members' profiles, and on this view I have an exposed filter for the taxonomy vocabulary age group. The exposed filter widget is converted from a dropdown box to a list of checkboxes using the Better Exposed Filters module.
What I want to do
This works well, but I want to further improve the UX by automatically checking boxes based on the user's age when he or she visits the page. Ideally, I want to automatically check the box for the user's own age group (e.g., a user in his/her 20s will automatically have the 20s box checked, while a user in his/her 40s will have the 40s box checked).
What I tried
I have no way how to implement this smartly. One possibility that entered my mind is creating a panel with variants for each age group and then cloning a view once per age group and then using views rewriting functionality to rewrite the query strings for all of the views to check the appropriate boxes... but this would lead to a huge amount of duplication and be very difficult to maintain.