English

Problem: A hyperlink in Survey123 for ArcGIS opens the website on the same page as the survey

Description

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.

A warning message appears when clicking the hyperlink.

Cause

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.

<a href=https://WebsiteURL>WordsToAppearOnScreen</a>
This is the HTML tag in the Excel form

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.

This is the Excel form

Clicking the hyperlink configured with the target="_blank" attribute opens the website on a new tab.

The webpage opens on a different tab

Related Information