Session State of multiple inputs text

Dear team,

I’m wondering of how to get the session state of multiple text input, which have unique key. I’m able to get the last text input only. How to access the key!

x= st.text_input(“x”, “30”,key=“1”)
y= st.text_input(“y”, “60”,key=“2”)
z= st.text_input(“z”, “0.85”,key=“3”)

No help :frowning:

Hi zuhoor

You can acces the session state from key like this:


If you dont use numbers as first character in your keys, you’re be able to access the session state like this:

x = st.text_input('x', '30', key='ti1')

Does this answer your question?