emvecchi commited on
Commit
0776730
·
verified ·
1 Parent(s): df15768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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("Save & Next"):
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 ")