I’m new to streamlit and am trying the form_submit_button function.
All I have in the app is a slider and a submit button. When I moved to slider, streamlit automatically prints the number without me pressing the submit button.
My expected result is that it would not print any number until I press submit.
For example, when I moved from the slider from 0 to 65, my expected result is 0. I also expect it to print 65 after I click submit.
Does anyone have any pointers on what I could do to fix this?
Streamlit ver: 0.89.0
import pandas as pd
import streamlit as st
with st.sidebar: text_input = st.slider(label='Enter some text') submit_button = st.form_submit_button(label='Submit')