Is there any way to change where a success message appears after clicking a button? Currently the success message appears at the top of the page. I would like to choose for it to appear somewhere else. Is this possible? I have provided some example code below to illustrate what I am talking about.
import streamlit as st
def show_success():
st.success('clicked!')
st.title('Test')
st.button('Click Me', on_click=show_success, type='primary')
Hi @RustyPie, I don’t think it is possible to get “precise” placement. Broadly, you will have to use columns / containers on your page and direct that output (st.success) into that column / container.