Need to display a URL field as a clickable hyperlink with custom text (e.g., 'Click here') In MRVS

ArshadHussA
Tera Contributor

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:

Question:
What is the best approach to achieve this? Should I use:

IMG.png

 

6 REPLIES 6

Sanjay191
Kilo Patron

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

 

 

Sanjay191
Kilo Patron
 

 

Ankur Bawiskar
Tera Patron

@ArshadHussA 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@ArshadHussA 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader