Mdupler commited on
Commit
9e5ee2a
·
verified ·
1 Parent(s): 9c17204

Add app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -104,6 +104,7 @@ def submission(survey_data):
104
  total_number_pages = 2
105
  placeholder_buttons = None
106
 
 
107
 
108
 
109
  # Function that records radio element changes
@@ -139,13 +140,14 @@ if st.session_state["current_page"] == 1:
139
 
140
  st.markdown("""<p class="big-font"></p>""", unsafe_allow_html=True)
141
 
142
- st.text_area(label = "test1",
143
- value= "" if st.session_state["Q1"] == None else st.session_state["Q1"],
144
- key = 'Q1_text',
145
- on_change = answer_change,
146
- args = ( "Q1", "Q1_text",))
 
147
 
148
- st.markdown("""<style> div[class*="stText"] > label > div[data-testid="stMarkdownContainer"] > p {font-size: 18px;}</style> <br><br>""", unsafe_allow_html=True)
149
 
150
 
151
  placeholder = st.empty()
 
104
  total_number_pages = 2
105
  placeholder_buttons = None
106
 
107
+ Q1_radio_options = ["stone","bapple"]
108
 
109
 
110
  # Function that records radio element changes
 
140
 
141
  st.markdown("""<p class="big-font"></p>""", unsafe_allow_html=True)
142
 
143
+ st.multiselect(label = "whats ur favorite beer",
144
+ default = None if st.session_state["Q1"] == None else st.session_state["Q1"],
145
+ options = Q1_radio_options,
146
+ key = 'Q1_multi',
147
+ on_change = multi_change,
148
+ args = (Q1_radio_options, "Q1", "Q1_multi",))
149
 
150
+ st.markdown("""<style> div[class*="stMulti"] > label > div[data-testid="stMarkdownContainer"] > p {font-size: 18px;}</style> <br><br>""", unsafe_allow_html=True)
151
 
152
 
153
  placeholder = st.empty()