How to display Hints for choice list values?

Not applicable

I love how column-level Hints are displayed when you hover over a column label. It would be great if the Hints for choice lists (aka picklist values) could be similarly displayed when a user hovers over the available choices for a given column, so the user could see exactly what each choice list value means before making their choice. Does anyone know how to do this?

4 REPLIES 4

CapaJC
ServiceNow Employee
ServiceNow Employee

To my knowledge, HTML Select Options will not take a title attribute, so the limitation here is unfortunately with HTML and the browser.


Hi
Just an idea. Might look confusing because of white cross on the red but possible workaround is to use the client script as described here: http://wiki.service-now.com/index.php?title=Display_Error_Message_on_Form


The field message workaround may not work for choice list options.



There is a way with JQuery to script this.   But I am trying to figure out how to implement this as a script.   See example below.


<div id="tooltip" class="tooltip"></div>
<div class="container">
   
<ul>
   
<li class="book" title="book"></li>
   
<li class="movie" title="movie"></li>
   
<li class="tv" title="tv"></li>
   
</ul>
</div>


<script>


$(document).ready(function(){
  $
("ul li").mouseover(function() {
  $
("#tooltip").text($(this).attr("title"));
   
});
});
</script>




How can I get hold of the glide object for the "ul li" replacement?


Not applicable

Hmmm... that _is_ an interesting idea. Thanks!