Need to display a URL field as a clickable hyperlink with custom text (e.g., 'Click here') In MRVS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Requirement:
I have a RITM (Request Item) with a MRV (Multi-Row Variable) that contains a field named "link" with type "URL". Instead of displaying the raw URL in the RITM, I want to display it as clickable text that says "Click here" (or similar custom text).
As we can't use HTML in MRVS in Servicenow
Current Behavior:
- The URL field stores values like:
www.google.com - When viewing the RITM, the field displays as plain text or as-is
- Users see the full URL displayed
Desired Behavior:
- The field should display as a clickable hyperlink with custom text like:
[Click here] - Clicking it should open the URL in a new tab/window
- The actual URL should be hidden behind the link text
Additional Context:
- This needs to work in a Multi-Row Variable (MRV) in a Request Item
- The URL may not always have the protocol prefix (e.g.,
www.google.cominstead ofhttps://www.google.com)
Question:
What is the best approach to achieve this? Should I use:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @ArshadHussA
Yes you are right that you can't able to create HTML and custom type of field variable in MRVS.
So first of all why we need to create only MRVS first ?
we can use variable that have custom type and create a widget that show me the data like this . In the widget we make this as clickable and attach that widget to this variable(that we created).
Second thing is that if you want to do with MRVS. Directly it's not possible to make this as clickable.
You need do to some customization on it like just show the info message on this record so when we click on the edit action it will show the link. when we click on this link it will redirect to that tab
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
that's not possible with MRVS when it's displayed
Please inform customer about this limitation
I will recommend not to do any customization as it will increase technical debt
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
