Users able to enter multiple pictures in one repeat record

324
3
07-05-2022 11:35 AM
dnykodym
New Contributor II

Hello,

We have a Survey123 application where field users can edit data using a URL to call their inspection when they are in the office. Part of the inspection is to collect images of the site in a repeat table. We noticed a quirk with the system where users can submit multiple pictures per record. So instead of each record having one picture with comments, the record shows multiple pictures. This is creating an issue with how a related application is pulling in the photos. Is there a way to limit this so only one image can be attached per record in the browser Survey123?

Currently we have this as a constraint "count-selected(${field_image})=1"but it hasn't been successful. Publishing using Connect version 3.15.165. We currently are trying adding extra hints to let the inspectors know to don't do this, but we want to limit this from happening.

0 Kudos
3 Replies
Richard_Purkis
Esri Contributor

@dnykodym You can control the number of repeats using the repeat_count column as described in this blog article: Survey123 Tricks of the Trade: Repeats

0 Kudos
dnykodym
New Contributor II

Hi Richard,

Thanks for the info! I included an image of the issue we are having for clarification. In the first record there is an image already attached. When the user goes in they can attach another image to that record. This makes it have 2 images in one record. Will the repeat_count fix this or just just limit the amount of records created?

0 Kudos
Richard_Purkis
Esri Contributor

@dnykodym A repeat count will limit the number of repeats for that section.

The first image below shows the repeat count set to 1

repeatcount1.JPG

This second image shows the options when the repeat count is removed. Notice the + icon is available to click

norepeatcount.JPG

0 Kudos