Add a field to a form that has a clickable URL link in it?

Kiran_25
Tera Expert

Hi

 

What would be the best way for me to add a field to a form (eg incident) which contains a clickable URL link in it. The URL is not a fixed link and it would specific to that particular record.

The URL is generated via a function but my understanding is that the can only be used if going the functional field route which is not possible as the FF field is grayed out  - can i use the function in other way? 

 

The source environment field is populated with the URL to the appropriate that created the incident.

 

I have explored doing it as a functional field, a calculated field and also a UI action but no luck.

 

 

 

 

 

Thanks,

3 REPLIES 3

Robbie
Kilo Patron
Kilo Patron

Hi @Kiran_25,

 

Thinking out loud, have you checked the field type of URL? This can be set as required (from a function for example as you've mentioned) and can also be set as read-only, or editable based on role of field meta data (member of group etc).

 

Would this meet your needs? If not, why not so I can understand your requirement a little better.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

 

Eg of URL type (cmsb_server)

Screenshot 2024-07-03 at 10.16.08.png

 

Eg of how to select URL type:

Screenshot 2024-07-03 at 10.21.18.png

 

Hi Robbie, I looked into this but I need the field to display a URL which is created from a glidefunction. 

The field will be on the incident form and using the glidefunction I want it to display a clickable URL to specific environment that the incident was created in.

Yashsvi
Kilo Sage

Hi @Kiran_25,

please check below link:

https://www.servicenow.com/community/developer-forum/adding-a-link-to-the-form/m-p/1902396

Thank you, please make helpful if you accept the solution.