Preserving Page State in Streamlit App with Multiple Pages

Hi @Anandhu_H

Typically, a Streamlit app runs from top to bottom and upon widget interaction the app state is reset. Thus, upon changing the page, the previous widget state would be reset.

To address that, you can look into using session state. Please see the following Docs page to get started:

Also, the following forum post seems to be relevant:

Hope this helps!