Pulldata() photos

330
3
03-22-2019 08:56 AM
Highlighted
New Contributor

I'm trying to standardise a question form that allows users to enter information about a structure (name and photo), the pulldata term then loads this information into the question form so the user can then answer questions about a structure.

I've got this to work for the name, but not the file path. The photo file path is loaded in and stored as a variable,I've put the variable in the images column to try and load that file path (as it changes often), but this doesn't seem to work.

It seems that the photo is loaded at the start of the form, before the variable is assigned. Has anyone had any experience with this before?

Thanks - any advice would be useful.

Tags (2)
Reply
0 Kudos
3 Replies
Highlighted
Esri Regular Contributor

Hi Oliver

Would it be possible to share your XLSForm so I can see how your survey is structured?

Some general info on images: To include an image in your survey it must be saved in the media sub-folder of your survey project. An image can also be submitted in your survey using an image question. Detailed information on using images in surveys is available here: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformmedia.htm

Best regards,

Jim

Reply
0 Kudos
Highlighted
New Contributor

Hi Jim,

I am trying to design a structure inspection tool that allows users to add in a photo and name for each structure into an excel workbook, the survey form then reads this into the survey and publishes the form. The user can then select the structure and see the photo and name of it.

I want this to be flexible so users can add whatever structures or photos they want - they're also not experienced in using S123 so I don't want it to be in the survey form excel workbook itself but more a separate 'simplified' workbook that the main form 'pulls' data from.

Any assistance would be greatly appreciated.

https://community.esri.com/docs/DOC-13153-structure-testxlsx

https://community.esri.com/docs/DOC-13154-structuresxlsx

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Hi Oliver

Thanks for the files and additional info. The media::image column accepts an image filename only (including its extension). Calculations or references to other questions will not work in this column. Image files must be stored in the media folder and published with your survey. The same applies to the image column on the choices tab.

One way to display an image in a note contingent on a previous answer would be to have a separate note for each, and make each of these notes relevant based on the previous answer. With this method the complete list of structures would have to be specified on the choices tab, and the images would have to exist in the media folder of your survey. Alternatively, add the image filenames to the image column on the choices tab; the user will then see a thumbnail image alongside each choice on the form.

If users are going to specify a new structure name and add a photo for each survey response, the survey could ask for these using text and image questions.

Also I notice your Structures file is an Excel document; it must be in CSV format to work with pulldata. As with images, this CSV file is stored in the media folder and published with your survey, so any changes to it would require the survey to be republished. For more information on using pulldata please see: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm

Hope this helps! Best regards, Jim

Reply
0 Kudos