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

Ayushi12
Mega Sage

Hi @Ram Padte ,
Refer:https://www.servicenow.com/community/now-platform-blog/url-navigation-tips/ba-p/2291142

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

Sorry, but this is not helpful. 

Anand Kumar P
Giga Patron
Giga Patron

Hi @Ram Padte ,

You would require to set the target attribute on your anchor tag used for rendering the links.

 

<a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>

target="_blank" opens the link in a new window

 

Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

Ram Padte
Tera Contributor

@Anand Kumar P : It does not work. URL field stores value as a string and not as HTML.