emvecchi commited on
Commit
a2d65cf
1 Parent(s): 29dc8d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -138,6 +138,13 @@ intro_fields: List[Field] = [
138
  ]),
139
  ]
140
 
 
 
 
 
 
 
 
141
  fields: List[Field] = [
142
  Field(name="topic", type="input_col", title="**Topic:**"),
143
  Field(type="expander", title="**Preceeding Comment:** *(expand)*", children=[
@@ -454,8 +461,12 @@ elif st.session_state.current_index < len(st.session_state.data):
454
  with st.form("data_form"+str(st.session_state.current_index)):
455
  show_fields(fields)
456
 
 
 
 
 
457
  else:
458
- st.write(f"Thank you for taking part in this study! [Click here]({https://app.prolific.com/submissions/complete?cc=CE552C7F}) to complete the study.")
459
 
460
  # Navigation buttons
461
  if st.session_state.current_index > 0:
 
138
  ]),
139
  ]
140
 
141
+ end_fields: List[Field] = [
142
+ Field(type="container", title="**Thank you for taking part in this study!**", children=[
143
+ Field(name="email", type="textarea", title="Enter an email address where we can send you the voucher? *Without this, we cannot recompense you for your contribution to our research.*"),
144
+ ]),
145
+ ]
146
+
147
+
148
  fields: List[Field] = [
149
  Field(name="topic", type="input_col", title="**Topic:**"),
150
  Field(type="expander", title="**Preceeding Comment:** *(expand)*", children=[
 
461
  with st.form("data_form"+str(st.session_state.current_index)):
462
  show_fields(fields)
463
 
464
+ elif st.session_state.current_index == len(st.session_state.data):
465
+ with st.form("intro_form"):
466
+ show_fields(end_fields)
467
+
468
  else:
469
+ st.write(f"Thank you, again! You are all done.")
470
 
471
  # Navigation buttons
472
  if st.session_state.current_index > 0: