Onload Client Script to contain hyperlink "click here" for the URL - field is of type URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 08:52 AM
Hi Team,
I need "click here" hyper link for the field of type URL
in the below script--materiality_information is the field of type url
requirement is:
href is not working in client script, also how to make above link dynamic as per ServiceNow instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 12:35 PM
I am working on custom table in scoped application . there is no field with richtextlabel here

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 07:31 AM - edited 07-25-2025 07:32 AM
I thought it's a catalog item variable. Rich Text Label is a catalog variable type not a table field.
For a table field you can use HTML type field and use below example onLoad client script
g_form.setValue('u_test_html', '<a href="https://www.servicenow.com">ServiceNow</a>');
g_form.setReadOnly('u_test_html', true);
This is how it looks :
Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth