Hi,
I am working on a survey that will eventually be public facing. There is a question “Are you closing a lane of traffic” that conditionally opens up a repeat section if the user answers ‘yes’. If the answer is yes, at least one record is required in the repeat. The user should not be able to submit the survey with an answer of yes but have no repeats.
I set up a conditional query. It only engages when the user says yes to a closure, and uses the count function of a required field within the repeat to total the entries. The constraint on that field is greater than zero, so if activated and no records appear, the constraint message pops up.
This works as intended within the Survey123 Connect preview (image: connect_success). However, upon publishing, the web version starts with the repeat expanded if enabled (image: web_default) and then the user can hit the trash can to delete the record (image: web_delete). If deleted, the user can successfully answer ‘yes’ to the closure question and not input an entry - the error doesn't come up.
@Ismael @JamesT
Any insight as to
- Why the functionality in connect is not matching the web form, and
- Any way to fix this problem?
Thanks so much.