Select to view content in your preferred language

Survey123 form in ExB wont open a new tab when clicking an embedded URL

163
2
Jump to solution
04-07-2025 01:31 AM
EdHixson
Frequent Contributor

Hi there

As the tirle says I have a survey123 form embedded within a survey being used in an experience builder app. I have multiple URL's within the form, some dynamic and pulled through from data and some static. I am struggling to get either of these example when clicked to open in a new browser tab rather than it attempting to open the new tab in the existing embedded form. This will end up being not successful and break the form in it attempt.

I have already tried some code that I found online but this isnt working, potentially I am missing some obvious or maybe this is a more known issue?

<a href="URL target="_blank">Link to Legal Reference Document to check codes</a>

 

Let me know if anyone has any suggestions

All the best

-Ed

 

0 Kudos
1 Solution

Accepted Solutions
Alex_Moore
Esri Contributor

Hi Ed, 

Thanks for your question! 

I believe there is a slight syntax error that may be causing the issue. To use your example, this is what I tested which allows me to open links in a new tab:

<a href="URL" target="_blank">Link to Legal Reference Document to check codes</a>

 

Specifically, it is the "URL" vs "URL target =" within the quotation marks. 

 

This is what my code block looks like from my question in ArcGIS Survey123 Connect: 

 

Label column for a note question: 

<a href="https://www.google.ca" target="_blank">Click here for new tab</a>

 

--- 

 

If this doesn't resolve your issue, feel free to provide further information and / or screen captures if applicable as I'm happy to continue working on it with you! 

 

Cheers, 

Alex 

 

Associate GIS Analyst
Esri Canada

View solution in original post

0 Kudos
2 Replies
Alex_Moore
Esri Contributor

Hi Ed, 

Thanks for your question! 

I believe there is a slight syntax error that may be causing the issue. To use your example, this is what I tested which allows me to open links in a new tab:

<a href="URL" target="_blank">Link to Legal Reference Document to check codes</a>

 

Specifically, it is the "URL" vs "URL target =" within the quotation marks. 

 

This is what my code block looks like from my question in ArcGIS Survey123 Connect: 

 

Label column for a note question: 

<a href="https://www.google.ca" target="_blank">Click here for new tab</a>

 

--- 

 

If this doesn't resolve your issue, feel free to provide further information and / or screen captures if applicable as I'm happy to continue working on it with you! 

 

Cheers, 

Alex 

 

Associate GIS Analyst
Esri Canada
0 Kudos
EdHixson
Frequent Contributor

Hi Alex

 

I feel very silly for missing the syntax, thank you for pointing that out it has fixed my problem!

 

ATB

- Ed Hixson