How to Change Label of a URL Field Type

Laurie Marlowe1
Kilo Sage

Hello,

On our Change Request form, we have a requirement to add two links to documents.   I created a URL field type and configured the labels:

Capture2.JPG

This is how it looks on the form:

Capture.JPG

Works great, except I want to draw more emphasis to the links.   I would like to change the color, make the font bold, and change font size.   I am able to use this client code on other field labels with success:

  1. function onLoad(){      
  2. var myLabel = g_form.getElementById('label.change_request.impact');      
  3. myLabel.style.color= 'red';      
  4. }      

When I change the field name from "impact" to "u_link_to_sop" it does not apply the style.   Is this because a field type of URL cannot be styled?

Thanks,

Laurie

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Rather than mess around with client scripts, how about a nice annotation above the fields that describes their purpose? This lends consistency to the UI and UX while allowing the advanced users to turn off annotations. This has become a common (best) practice for ServiceNow since Eureka.



Annotating Forms - ServiceNow Wiki


View solution in original post

1 REPLY 1

Chuck Tomasi
Tera Patron

Rather than mess around with client scripts, how about a nice annotation above the fields that describes their purpose? This lends consistency to the UI and UX while allowing the advanced users to turn off annotations. This has become a common (best) practice for ServiceNow since Eureka.



Annotating Forms - ServiceNow Wiki