I was browsing the ArcGIS API for Python documentation relating to Forms. Well, I thought I'd stumbled across hidden treasure. The excitement meter went into overdrive.
What got me excited I hear you ask? It looked like I could create a question for adding an attachment (image or signature)
Check out these links
FormAttachmentInput
FormImageInput
FormSignatureInput
So, I can add these elements to Form using the ArcGIS API for Python. I also found more information over on the WebMap Specification...
formAttachmentElement
formAttachmentInput
formSignatureInput
I created a WebMap with a simple form. Notice, you cannot create an entry for an attachment.
Now, watch the magic that happens when I manipulate the JSON based on the WebMap Specification to create an extra entry in the form for capturing an image with some manners (naming photos, number of photos to be collected min/max for examples)
Unfortunately, that is where the magic ends 😢
When you open in Field Maps we are met with "The form contains unsupported data".
Come on Esri, make Christmas come early and update Field Maps to work with the behind the scenes JSON.
Or perhaps these already work, and I'm missing something?
Thank you for sharing this!
@Clubdebambos as you discovered we do have some new capabilities planned within the form to improve and extend what you can do with attachments. We're excited to share this when the time is right, but as you found out we're not there yet. There are a lot of moving parts that need to align for us to light this up across the system, several of which are not complete. Support for this will not be in the upcoming 25.2 release of Field Maps due out this summer, but it's high on our list to include after that. We'll be announcing this in our what's new blogs when we have all the pieces in place. Stay tuned!