Creating a masked URL though Business rule

MaharshiC
Tera Contributor

Hi,

I want to have an URL pasted in one of my fields which i am doing using a br. The URL is a dynamic one. But I dont want the user to see the entire URL in the string field rather it should show only as Ok and when they click on Ok they should be redirected to URL. Is this feasible? I need this URL in  a string field and not variable.

 

 

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @MaharshiC 

As there's no OOB feature to achieve this, you need to create a custom macro component to meet this requirement.

Please go through the following community post to get more information.

https://www.servicenow.com/community/developer-forum/display-hyperlink-instead-of-full-url-in-url-fi...

 

Hope this helps.

Regards,

Siva

View solution in original post

2 REPLIES 2

J Siva
Tera Sage

Hi @MaharshiC 

As there's no OOB feature to achieve this, you need to create a custom macro component to meet this requirement.

Please go through the following community post to get more information.

https://www.servicenow.com/community/developer-forum/display-hyperlink-instead-of-full-url-in-url-fi...

 

Hope this helps.

Regards,

Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@MaharshiC 

the text ok is not a URL so when they click it won't open the URL

You cannot achieve this requirement.

You can mask it though using the custom logic

If my response helped please mark it correct and close the thread so that it benefits future readers.

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