Problem: A hyperlink in Survey123 for ArcGIS opens the website on the same page as the survey
In Survey123 for ArcGIS, clicking a hyperlink in the survey opens the website on the same page as the survey, causing data in the survey to disappear without being saved. With certain browser settings, a dialog box appears to warn of the risk of proceeding to open the website, as shown in the image below.
In the Survey123 Connect for ArcGIS XLSForm, the hyperlink is configured using a general HTML <a> tag, as shown in the code and image below. The general HTML <a> tag opens the website on the same page as the source page.
Solution or Workaround
To open the hyperlink in a new tab, add the target="_blank" attribute after the website URL, as shown in the code below.
<a href=https://WebsiteURL target="_blank">WordsToAppearOnScreen</a>
In the Survey123 Connect for ArcGIS XLSForm, identify the cell containing the hyperlink and configure the HTML <a> tag with the target="_blank" attribute in the label field, as shown in the image below.
Clicking the hyperlink configured with the target="_blank" attribute opens the website on a new tab.
- Survey123 for ArcGIS: Integrate with other apps
- GeoNet: Can you set hyperlinks to open in a new browser tab?
- GeoNet: HTML Links for Survey123 to just about anything
- w3schools.com: HTML <a> target Attribute
- w3school.com: HTML <a> Tag
Last Published: 6/19/2019
Article ID: 000020436
Software: ArcGIS Survey123 3.4, 3.3, 3.2, 3.1, 3.0, 2.9.Classic, 2.8