Filter Dropdown by Option set using attribute

Hi - I’m creating a sports app for college student athletes. I have an option set which is a list of positions, each position has an attribute of a corresponding sport (sport is also an option set). How can I create a dropdown where it filters to only show positions with attributes that correspond to the current users sport. See example below

Position:
Catcher (attribute: baseball)
Pitcher (attribute: baseball)
Quarterback (attribute: football)
Wide Receiver (attribute: football)

I want to have a drop down that checks the users sport an only shows the positions that have the attirbute that matches users sport

Hi there, @patrick6… assuming that your sport attribute and the sport field on the User data type are both tied to your sport option set, this setup for the dropdown will do the trick…

Hope this helps.

Best…
Mike

3 Likes

Yes this solved my issue! Thanks!

1 Like

@mikeloc Hey Mike… do you do freelance work? I noticed your website and I was impressed… I’m looking for help on responsive & design for a single page application that I eventually hope to wrap into mobile. Let me know if you are interested and we can discuss.

Hey there. @patrick6… thanks for the kind words about my linked app… I still dig that silly little app, with the best thing about it being my girlfriend’s awesome artwork, of course. :slight_smile:

I will hit you up directly to discuss your app and see if I might be able to help.

Best…
Mike

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