Hey @Aaron_Webber,
This looks related to this post , you could use this same approach but with st.radio()
.
Something like this:
import streamlit as st
import SessionState
session = SessionState.get(run_id=0)
if st.button("Reset"):
session.run_id += 1
options = ["a", "b"]
option_selected = st.radio("Label", options, key=session.run_id)
index_selected = options.index(option_selected)
st.write(option_selected)
st.write(index_selected)