URL Field opens all URLs in same window

Ram Padte
Tera Contributor

I have multiple fields on the form with field type = URL. This is on the backend ServiceNow Incident form. If I click on any URL, it opens in a new tab on the Chrome, however, when I click another link on the ServiceNow form, it opens in the same new tab which opened the previous link. Is there any way to open URL every time in New Tab or Window? I tried to put "_blank" on the URL target of label but it says "URL target is no longer used starting with UI 15".

7 REPLIES 7

Ramz
Mega Sage

Hi @Ram Padte ,

By Default URL field always opens in new tab . If there are 2 or 3 url in the same form when you come and click on the link in the form it always opens in new tab. I tried it in my PDI and each time I click on different links it opens in different new tab. 

 

Is your url pointing to different website or link redirecting to a servicenow page in your instance?

 

Please mark this response as correct or helpful if it resolved your query

 

 

Amit Verma
Kilo Patron
Kilo Patron

Hi @Ram Padte 

 

I tried reproducing the issue on my PDI but the URL fields are working as expected. It opens a new tab for respective URLs. To further debug it, please try to inspect your URL fields using the Inspect Element feature available in chrome. Press Ctrl+Shift+i to open the inspect element pane and inspect your URL field for the <a> tag. 

 

Please refer below screenshot. Here, the <a> has target blank which comes OOB so it will always open the link in new tab.

 

AmitVerma_0-1714364123720.png

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Interesting! In our instance, the target is set to gsft_link by default. How do I change it?

Screenshot 2024-04-29 at 8.13.57 AM.png