Do you want to control the exact naming of image files submitted through a Survey123 form? It is possible! Using an XLSForm expression, you can set meaningful file names to photos and signatures collected via the Survey123 web and field apps.
Look at the screenshot below. Note how the file name of the photo has been automatically set to combine previously entered information: The Job ID and Service Type.
You can set the file name of photos, but also signatures. For example, in a Building Permit Application form you may want to compose the file name of a signature using the full name of the requestor plus the exact date and time when the application is submitted.
Having full control over the file names uploaded into ArcGIS is particularly beneficial when you plan to download your data, including attachments, in the future.
To control the name of the files you upload from Survey123 into ArcGIS, you need to use the fileName parameter in the bind::esri:parameters column, as shown below.
Here are some examples:
The name of a photo combines the job ID, type and the current time.
The name given to the signature image file combines the inspector full name with the current time.
Here are some rules to properly set the file name:
If you do not follow the rules above, the Survey123 mobile and web apps will override your file name with one that complies with the rules.
Tips:
fileName=concat("Photo_",format_date(now(),"%y%m%d%H%M%S"))
fileName=concat("Student_Photo_", $(first_name},"_",${last_name}) fileNameVisible=false
fileName=concat("Student_", $(fullname}) fileNameVisible=true allowRename=false
Read the Customize file names section of this help topic to learn more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.