Summary
how to get the values entered/selected
Steps to reproduce
Code snippet:
import streamlit as st
with st.form("my_form"):
st.write("Create Test account")
Email = st.radio('Please select your email address',('test1@test.com','test2@test.com','test3@test.com','test4@test.com'))
ocg = st.text_input('Enter the ocg number', key=int)
st.write('Select the environment')
option_1 = st.checkbox('Stage')
option_2 = st.checkbox('Prod')
if option_1:
st.write('You entered:', Email+ocg+str('Stage'))
elif option_2:
st.write('You entered:', Email+ocg+str('Prod'))
# Every form must have a submit button.
submitted = st.form_submit_button("Submit")
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Expected behavior:
I am trying to append the values selected/entered and get the output as expected below:
Actual behavior:
i am getting the output as below:
email@test.com+ocg+env