This works:
But you can see that you have to add the function to each checkbox event, which is monotonous (however, you can do what Everynone did and bind the events to a single event). Since only one option can selected at a time, consider using a combo box instead, which requires no additional setup.
Here are both in action:
https://streamable.com/8kkiad