Select to view content in your preferred language

Limit the number of files a user can upload

410
2
Jump to solution
09-15-2023 07:38 AM
arc_ticodex
New Contributor III

Hi everyone! 

 

I'm wondering if there is any way to limit the number of files a user can add to a "file" question type without setting a "begin repeat" in Survey Connect.

I know that I can limit the size of the attachments, but I didn't find a way to limit how many files the user can upload.

Thanks for the help!

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

You can use a constraint like this  count-selected(${testfile}) <= 2.  It seems to allow them to attach but then stops them on validation.

More info in here  https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photos/ba-p/897907 

It is about photos but seems to work on files also.

View solution in original post

2 Replies
DougBrowning
MVP Esteemed Contributor

You can use a constraint like this  count-selected(${testfile}) <= 2.  It seems to allow them to attach but then stops them on validation.

More info in here  https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-photos/ba-p/897907 

It is about photos but seems to work on files also.

arc_ticodex
New Contributor III

It worked for files too! Thank you so much!