Select to view content in your preferred language

Field Maps, Minimum file count still required when media not relevant - workaround to required attachments?

379
11
Jump to solution
3 weeks ago
TL2
by
Frequent Contributor

I am trying to make an attachment required if a condition is met.  When I set a condition and a minimum file count it still requires the attachment even when the attachment item is hidden (condition not met).

Is there a way to require attachments based on a condition?

0 Kudos
11 Replies
GarrettBellin
Esri Contributor

I just wanted to clarify the issue and resolution for everyone on this thread. The issue ultimately stems from a logic problem when building the form. When a user sets a required attachment question to be hidden (either manually or via an arcade script), then it becomes impossible to submit the form if the minimum file count is set to anything greater than 0. This issue stems from the following two sources.

  1. It isn't possible to set attachment questions to be optional. The only way to do this is to set the minimum file count to 0. So the question will be mandatory with a minimum file count of 1 or greater.
  2. Even when a question is hidden, the condition must be met if its not an optional question.

This presents a paradoxical situation where if an attachment question with a minimum file count of 1 or greater is hidden, a user can't submit their form. The following are potential resolutions:

  1. Keep attachment requirements at "0" if they will be hidden based on previous responses. This effectively makes the question optional.
  2. Two defects were logged on the Esri side. The first being a request to add the ability to make attachment questions optional via a check box. The second was a bug to make hidden questions optional when they are hidden since they create a situation where the user can't submit the form. 
TL2
by
Frequent Contributor

Thanks Garrett, finally someone believed me!

0 Kudos