I tried to adapt the code from this answer to my own app (specifically to the answer given by user "theDuncs". I\'m trying to create a way for the user to select a