import streamlit as st st.title("Hello Streamlit-er 👋") print("before a") a = st.text_input("ABC", key = "a") print(f"a {a}") b = st.text_input("ABC", key = "b") print(f"b {b}") st.text(str(st.session_state)) if st.button("reset"): print('deleting') st.session_state['a'] = None
I don’t understand why it should not be possible to change the input state. If the user can why can’t code ?