Only one user option from multiple checkboxes

Following scenario:

I wanted to create a simple programming quiz app. Now I have four options on each question represented as st.checkboxes.


How can I tell streamlit to only mark one question, so if the user marks one question the other answers are disabled.

Hi @MaxMnemo,

The behavior you’re looking for is available using :slightly_smiling_face: With, users can select at most 1 out of n provided options.

Best, :balloon:

1 Like

Thanks. I’ll switch to radio buttons then.

1 Like