Add a field to a form that has a clickable URL link in it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:56 AM
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 02:22 AM
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)
Eg of how to select URL type:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 12:36 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 02:29 AM
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.