Can you set hyperlinks to open in a new browser tab?

4192
5
Jump to solution
09-12-2018 05:55 AM
Anneka_France
Occasional Contributor III

I have embedded hyperlinks into a form (using html formatting). When using the web form, the hyperlinks open in the same tab and all data input is lost. Is there a way to set the hyperlinks to always open in a new tab/window? I can't think of a single circumstance that it would be useful for the link to open in the same tab.

Thanks

Survey123 for ArcGIS

Anneka France
Technical Manager at The Rivers Trust
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

For standard html links you can try adding the "target =…" portion

hyperlink - How to open link in new tab on html? - Stack Overflow 

<a href="https://www.google.com/">Google.com </a>
<a href="https://www.google.com/" target="_blank">Google.com </a>

View solution in original post

5 Replies
DanPatterson_Retired
MVP Emeritus

For standard html links you can try adding the "target =…" portion

hyperlink - How to open link in new tab on html? - Stack Overflow 

<a href="https://www.google.com/">Google.com </a>
<a href="https://www.google.com/" target="_blank">Google.com </a>
HarrazMohd-Reza
New Contributor

Inversely, is there a way to have the hyperlink open within a survey without taking you to a new window or erasing any of the previous input data?

0 Kudos
by Anonymous User
Not applicable

Hi Harraz,

I am not sure this workflow would make sense, as it would navigate you away from the survey123 web app site in that window, and therefore the information already entered in the survey but not submitted would be lost. Opening in a new tab or new window is the only way to view that external url but keep the survey information in the web app window.

Phil.

0 Kudos
by Anonymous User
Not applicable

Hi Phil,

Something like this would be useful if you have an embedded map in a StoryMap and want to have a link to a survey based upon points of interest on a map.

My issue is when someone clicks the link to a survey it opens up a new tab and so when in the survey is completed and the user has other points they would like to look at in the storymap to return to the map they need to click on a link provided after the Survey is completed but this keeps opening new tabs which is messy. It would be cleaner if I could adapt the HTML to not open in a new tab allowing all this to work within one tab. 

0 Kudos
JodyZhengLiu
Esri Contributor

Hi Neil,

You can create a customed web page and use the Survey123 Web app JavaScript API (will soon be available in August) to dynamically update the survey URL to use different locations. 

Thanks,

Jody Zheng Liu