Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -821,18 +821,18 @@ elif st.session_state.current_index < len(st.session_state.data):
|
|
| 821 |
# Action buttons
|
| 822 |
c1, c2, c3 = st.columns([1,1,6])
|
| 823 |
with c1:
|
| 824 |
-
if st.button("
|
| 825 |
if validate_current_page(fields, st.session_state.current_index):
|
| 826 |
with st.spinner("saving"):
|
| 827 |
prep_and_save_data(st.session_state.current_index, ('skip' in st.session_state and st.session_state['skip']))
|
| 828 |
st.success("Saved!")
|
| 829 |
navigate(1)
|
| 830 |
-
with c2:
|
| 831 |
-
if st.button("Save only"):
|
| 832 |
-
if validate_current_page(fields, st.session_state.current_index):
|
| 833 |
-
with st.spinner("saving"):
|
| 834 |
-
prep_and_save_data(st.session_state.current_index, ('skip' in st.session_state and st.session_state['skip']))
|
| 835 |
-
st.success("Saved!")
|
| 836 |
|
| 837 |
elif st.session_state.current_index == len(st.session_state.data):
|
| 838 |
st.write(f"**Thank you for taking part in this study!** \n ")
|
|
|
|
| 821 |
# Action buttons
|
| 822 |
c1, c2, c3 = st.columns([1,1,6])
|
| 823 |
with c1:
|
| 824 |
+
if st.button("Submit"):
|
| 825 |
if validate_current_page(fields, st.session_state.current_index):
|
| 826 |
with st.spinner("saving"):
|
| 827 |
prep_and_save_data(st.session_state.current_index, ('skip' in st.session_state and st.session_state['skip']))
|
| 828 |
st.success("Saved!")
|
| 829 |
navigate(1)
|
| 830 |
+
# with c2:
|
| 831 |
+
# if st.button("Save only"):
|
| 832 |
+
# if validate_current_page(fields, st.session_state.current_index):
|
| 833 |
+
# with st.spinner("saving"):
|
| 834 |
+
# prep_and_save_data(st.session_state.current_index, ('skip' in st.session_state and st.session_state['skip']))
|
| 835 |
+
# st.success("Saved!")
|
| 836 |
|
| 837 |
elif st.session_state.current_index == len(st.session_state.data):
|
| 838 |
st.write(f"**Thank you for taking part in this study!** \n ")
|