Question about selectbox

Hi everyone.
I am a new Streamlight user.
I have one question, so I’m asking this.
Currently, I have created a sidebar.selectbox on the left to connect the ‘Login’ and ‘Sign up’ pages.
If login is successful on the login page, I would like to know how to remove the ‘Login’ and ‘Sign up’ labels, which are option values ​​in the existing selection box, and create new ‘Home’, ‘Gallery’

Hi @streamlit-korean

Yes this is possible by using if/else conditionals.

Consider the following pseudo code:

if {status is signed in}:
   {show Log-in and Sign-up options}
else:
   {Show navigation such as Home, Gallery, etc.}

Hope this helps!

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