Hints on field labels - inserting line breaks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2009 02:02 AM
Hi,
does anybody know how to format a Hint associated with a field label? On an Incident form I want to display the Impact/Urgency/Priority matrix in the hint associated with the Impact and Urgency fields, but in order to do that I need to be able to insert line breaks.
Brian Broadhurst
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2009 08:18 AM
They simply use the browser's normal "title" tag, and to my knowledge there's no way to do line breaks in those. I've googled it on more than one occasion, and short of the product implementing a custom JavaScript replacement for the label tooltip capability, I don't think it's possible.
Believe me, I've tried. Maybe someone else has a solution I missed, tho!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2009 08:18 AM
There's not an easy way to do this currently. The hints are standard HTML title tags that get rendered as plain text. Because of that, there's not a way to modify how they look or work unless you resort to a javascript/css hack.
The simplest solution for your scenario would probably be to set up KB article or something that gave the additional detail you're looking for. Then you could use the 'URL' and 'URL target' fields on the label for that field to create a link that would open a new window giving additional detail.
For example, if I wanted to create a link on a label that would reference 'http://www.service-now.com' and open in a new window I would use the following settings on the label entry for the field.
URL: 'http://www.service-now.com'
URL target: '_blank'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2009 10:41 AM
Greetings,
I managed to implement line breaks on Hints for IE, and it was in fact pretty simple. I created a onload script on my incident form, get the element and set the title property the way I wanted.
Here is the script:
function onLoad(){
var impact= gel( "status.incident.impact" );
if( impact && impact.parentNode ){
var impacthint = new Array();
impacthint.push( "1-High:" );
impacthint.push( " 5 or more users affected." );
impacthint.push( " 2-Medium:" );
impacthint.push( " 2 to 4 users affected." );
impacthint.push( " 3-Low:" );
impacthint.push( " 1 user affected." );
impact.parentNode.title = impacthint.join( "\r" );
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2010 03:40 PM
This seems to work well, is there a way to set the duration for the display?