URL Field opens all URLs in same window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 10:19 PM
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 10:41 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2024 06:29 PM
Sorry, but this is not helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2024 12:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2024 06:29 PM
@Anand Kumar P : It does not work. URL field stores value as a string and not as HTML.