Select to view content in your preferred language

Link to print button on form view in S123 web site

153
2
Jump to solution
07-14-2025 05:24 AM
HanliePetoors
Frequent Contributor

Hi,

I'm working in ArcGIS Enterprise 11.3.

I want to print survey reports but I'm having trouble getting the printing to work.

The print icon in the form view does give me a very basic report but it's good enough for now.

HanliePetoors_0-1752495798398.png

 

I would like to know if its possible to construct the URL to execute this print function from a popup.

 

Thanks

Hanlie

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Neal_t_k
Frequent Contributor

I don't think this is possible as you describe.  That print function only shows once a feature has been selected. However, you can add parameters to the URL to open with specific features already selected i.e. adding "&objectIds=38" to the url.  Not an expert in website and url parameters, but it appears a print function has to be initiated from a loaded page and cannot be initiated external to the page.    The only way I saw this was possible was writing a code to initiate the print from within an iframe, so load the page in an iframe and a script to print that page from there, however that was printing the full webpage and would not address the print function you reference.

That said you may be able to achieve a something similar using webhooks and the Survey123 reporting functions.

https://doc.arcgis.com/en/survey123/browser/analyze-results/webhooks.htm

https://www.esri.com/arcgis-blog/products/survey123/sharing-collaboration/get-started-with-survey123...

https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm

 

View solution in original post

0 Kudos
2 Replies
Neal_t_k
Frequent Contributor

I don't think this is possible as you describe.  That print function only shows once a feature has been selected. However, you can add parameters to the URL to open with specific features already selected i.e. adding "&objectIds=38" to the url.  Not an expert in website and url parameters, but it appears a print function has to be initiated from a loaded page and cannot be initiated external to the page.    The only way I saw this was possible was writing a code to initiate the print from within an iframe, so load the page in an iframe and a script to print that page from there, however that was printing the full webpage and would not address the print function you reference.

That said you may be able to achieve a something similar using webhooks and the Survey123 reporting functions.

https://doc.arcgis.com/en/survey123/browser/analyze-results/webhooks.htm

https://www.esri.com/arcgis-blog/products/survey123/sharing-collaboration/get-started-with-survey123...

https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm

 

0 Kudos
HanliePetoors
Frequent Contributor

@Neal_t_k thanks for the reply. 

The web hooks I did not think about and it seems the actions available for Survey123 includes printing a report but using a template, not the function I highlighted in the screenshot above.

I thought that, while I wait for IT to sort out the enabling of the standard S123 reporting, this could be a workaround. But for now I have just linked to the S123 data page and the users will have to select the survey themselves and use the form print function.

0 Kudos