Attaching an excel or pdf file to Survey?

3495
1
Jump to solution
09-09-2021 08:11 PM
JohnnyHarley232
Emerging Contributor

Hello, I have a survey where I need an inspector to download an excel file or pdf file to their phone or computer. Is there a way to reference an excel file hosted in ArcGIS Online and the user can download it when they click on link inside of the survey? 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DeonLengton
Esri Contributor

Hi Johnny

I have done this in the past. You can create an HTML link in your survey to the document in question. Have a look at my blog about HTML links in Survey123: https://community.esri.com/t5/arcgis-survey123-blog/html-links-for-survey123-to-just-about-anything/...

Basically you follow these steps:

1) Add the PDF or Excel file to your AGOL by going to Content / New Item / Choose to add the file from 'Your Device' or simply drag and drop the file into the area shown:

DeonLengton_0-1631257880392.png

 

Once you have created the item you will be taken to it's item page. From there you probably want to share the file publicly to avoid any sharing issues (unless it is sensitive information).

Once shared, you can copy the link to the file by scrolling down on the Overview page of the item and copying it's URL:

DeonLengton_1-1631258037803.png

 

In Survey123 you can now reference the file with an HTML link by using a calculation on a NOTE field:

concat('<a href="file:https://esriza.maps.arcgis.com/sharing/rest/content/items/58bf71eb534741429c03a0f052e0f7fa/data" class="link external button button-raised button-fill color-blue">Open PDF</a>')

DeonLengton_2-1631258094632.png

I attached the XLSX file for your reference to this post...

I hope this helps! 

 

View solution in original post

1 Reply
DeonLengton
Esri Contributor

Hi Johnny

I have done this in the past. You can create an HTML link in your survey to the document in question. Have a look at my blog about HTML links in Survey123: https://community.esri.com/t5/arcgis-survey123-blog/html-links-for-survey123-to-just-about-anything/...

Basically you follow these steps:

1) Add the PDF or Excel file to your AGOL by going to Content / New Item / Choose to add the file from 'Your Device' or simply drag and drop the file into the area shown:

DeonLengton_0-1631257880392.png

 

Once you have created the item you will be taken to it's item page. From there you probably want to share the file publicly to avoid any sharing issues (unless it is sensitive information).

Once shared, you can copy the link to the file by scrolling down on the Overview page of the item and copying it's URL:

DeonLengton_1-1631258037803.png

 

In Survey123 you can now reference the file with an HTML link by using a calculation on a NOTE field:

concat('<a href="file:https://esriza.maps.arcgis.com/sharing/rest/content/items/58bf71eb534741429c03a0f052e0f7fa/data" class="link external button button-raised button-fill color-blue">Open PDF</a>')

DeonLengton_2-1631258094632.png

I attached the XLSX file for your reference to this post...

I hope this helps!