Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I set a tooltip to field controls in edit mode?

For instance when a user edit a article, hovering over TextField (or the title of the field) a tooltip with custom text will show.
It would also be nice to fetch this text from resources.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can use the TITLE html attribute for browser-standard tooltips or javascript solutions like jQuery plugins. As a matter of fact, jQuery itself would be helpful for setting the titles of appropriate html elements as well.

share|improve this answer
    
Yeah I see how this would work. But how well does it work with resoures? –  eirikb Jul 29 '10 at 8:33
    
The best way seems to be to first set ID on the field control, then do something like this in jQuery, for Title: $(".ms-formfieldcontainer:has(input[id*=_Title_ctl00])").attr("title", "ToolTip goes here"); Then I get the whole div. Still need to figure out how to feetch from resoruces though –  eirikb Jul 29 '10 at 9:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.