How to remove the value of st.session_state['selectbox'] that is unnecessarily appearing at the top of the page from the time the value is changed?

Please take a moment to search the forum and documentation before posting a new topic.
If you’re creating a debugging post, please include the following info:

  1. Are you running your app locally or is it deployed? Deployed
  2. If your app is deployed:
    a. Is it deployed on Community Cloud or another hosting platform? Deployed on Community Cloud
    b. Share the link to the public deployed app. - Link: Cost_Averaging_Calculator · Streamlit
  3. Share the link to your app’s public GitHub repository egipot/PyBlot_stock_cost_averaging_calculator
    (App dependencies for your Community Cloud app - Streamlit Docs)).
  4. Share the full text of the error message (not a screenshot). - There is no error. I just want to remove the unnecessary displaying of selectbox value on top of the page.

  1. Share the Streamlit and Python versions. Python==3.12.0, streamlit==1.41.1

on_change_user_prompt() is printing it. Remove the on_change argument and it will stop appearing.

1 Like

Thanks for your guidance! :raising_hands:
Editing the function worked. :slightly_smiling_face:

Cheers!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.