I don’t have access to your data, so I’ve subbed in a short list. This snippet does not throw an error for me on Streamlit 1.14.0. If you get a missing button message, then there is some other context within your code that’s relevant or I’m misunderstanding your code spacing since it’s not in a code block. Note you had a typo in your original post “laberl” instead of “label” and also, your widgets should be throwing a “DuplicateWidgetID” error, so here’s the keys to pre-emptively fix that.
with st.sidebar.form(key='my_form',clear_on_submit=False):
parameter1=st.selectbox('Select a parameter',[1,2,3,4], key='p1')
parameter1size=st.number_input(label='Greater than', value=1000, key='p1_size')
parameter2=st.selectbox('Select a parameter',[1,2,3,4], key='p2')
parameter2size=st.number_input(label='Greater than', value=1000, key='p2_size')
parameter3=st.selectbox('Select a parameter',[1,2,3,4], key='p3')
parameter3size=st.number_input(label='Greater than',value=1000, key='p3_size')
sector=st.selectbox(label='Sector',options=[1,2,3,4])
pressed = st.form_submit_button('Submit')
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.