How to open hyperlink in help text in new window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 07:36 AM
I have some HTML that inserts a hyperlink into my help text. This is working as expected, but I would like to get it to open in a new window. Currently opening in same window when clicked:
Note: A Contract Record Number (CRN) is six digits or less, is associated with a specific contract delivery or task order number. Please refer to the Contracts System to locate the <span style="text-decoration:underline; color: blue"><a href="xxxxxxx"> Contract Record Number.</a> </span>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 07:39 AM
Hi Nicole,
Add the attribute target='_blank' in the anchor <a> tag
<span style="text-decoration:underline; color: blue"><a href="https://issaic.saic.com/contractswork.nsf/search?OpenForm" target='_blank'> Contract Record Number.</a> </span>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 08:04 AM
Hi Nicole,
Use the target='_blank' attribute in your anchor tag. Here is the updated html tag highlighted in bold.
<span style="text-decoration:underline; color: blue"><a href="https://issaic.saic.com/contractswork.nsf/search?OpenForm" target="_blank">Contract Record Number.</a></span>
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 08:05 AM
Mate how is that different from what i said??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 08:10 AM
Hi Anurag,
It's same but I did not see your comment since I opened the question, wrote the text but submitted it later on only to see that already someone has posted to it.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader