Hi Team,
We are facing an issue while pulling images in Survey123.
I have created a new survey form that contains three questions, including an image question, along with repeat questions for an inspection workflow. The workflow is as follows:
However, the images captured in the first survey are not displaying in the second (inspection) survey form.
I am using URL parameters and have embedded the inspection survey form in a Dashboard. Both survey forms were created using Survey123 Connect
Thanks & Regards,
Kristofer
Where is the image question for each user, your description sounds like your initial image question is outside of the repeat in your main form, however in the screenshot provided the image question appears inside the repeat.
If it is inside the for both, do you have "query allowUpates=true" in the bind::esri:parameters column of the image question.
If the original image question is outside the repeat, you will have to perform a calculation to populate the image inside the repeat. However if you are using a Dashboard, you could make a list element to view the images and not try to move them around in the survey.
Hi @Neal_t_k
Thanks for the quick response !!
We have a hosted feature layer consisting of a point layer and its associated related table.
The images are stored as attachments on the point layer, while the inspection Survey123 form is created on the related table.
We also attempted the following:
Calculating values from the point layer in Survey123 Connect
Creating a new question of type "note" to calculate and display the image in the inspection survey form
In all cases, the image fails to load or does not render.
Thanks & Regards,
Kristofer
Depending on your exact setup, I believe this is "working as intended" at this time. While you can natively pull images into subsequent surveys via the Inbox (for example), you cannot pull images into other forms with something like pulldata().
The simplest workaround would be to make both of the forms into a single form, and just dynamically show content based on a parameter (e.g., employee title, a hidden field populated via URL, or a radial button).
Have you tried to configure your inspection survey to have items from the main form in it, That is, have the image question from the main form populated outside the repeat and then just the questions for the inspection survey inside the repeat.
Some other options, the details element in Dashboards will show attached images. You could setup a selection on you map to render a details element which would allow access to the photos. Also you could configure the popup on the map to contain the images for review, then you wouldn't have to worry about it in Survey123.
Did a quick test and this should work.
Workflow:
Created and Published a survey with a Main section with an image and questions all relevant, With a repeat section with inspection questions, not relevant, reserved for later.
Copy form1 to form2, Make the repeat section relevant. Make all questions but the image and any other identifying information not relevant in the main section. Set the submission id to the url for the feature layer of form1. Publish.
Submit an image and answers in form 1.
Configured a url for form2 using the globalid from the submission to form1 to open form 2.
The image was visible.