Tooltip() Help

rss

Posted by schuess - Jan 23 ’14 at 04:32

I am not following how to modify the tooltips without modifying the field title. i was hoping to also do some additional styling of the tooltips like noted at http://jqueryui.com/tooltip/

can you give some specific instruction on how to add a tooltip?

 

thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 20 days
    #11 by Dmitry Kozlov Dec 4 ’14 at 07:11

    [#10]: Could you send HTML-source of the form page and a screenshot with highlighted field that you tried to change without success to [email protected]?

  • Sonoma
    Member
    Member for: 5 years 2 months 17 days
    #12 by Sonoma Dec 4 ’14 at 08:34

    [#10]: Setting the tooltip to be the same as the title would be a great feature. In SPForms 2013 I can get watermarks to work but I have several forms with 150+ fields. It can be time cosuming to set all the tool tips to the title name. Removing tooltips entirely would be ok but I would rather like to set the tool tip to be the same as the Title.

  • AgneseB
    Member
    Member for: 5 years 12 days
    #13 by AgneseB Dec 5 ’14 at 04:07

    Tried to change tooltip for Multiple lines of text field and for Choice field. Didn't work. But now tried the same code for fields with other type, like Date, Single line of text and it works. I mainly have Choice fields in my form, how to add tooltips for them?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 20 days
    #14 by Dmitry Kozlov Dec 5 ’14 at 10:24

    [#13]: Ok. So what type of Choice (Radio buttons, Checkboxes, or Dropdown) and Multiple lines of text (Rich Text, Plain Text, Enhanced Rich Text) fields do you use on your forms?

  • AgneseB
    Member
    Member for: 5 years 12 days
    #15 by AgneseB Dec 8 ’14 at 02:52

    Mainly Dropdowns and Plain Text fields.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 20 days
    #16 by Dmitry Kozlov Dec 8 ’14 at 04:55

    [#15]: So, please, try the code below:

    fd.field('InternalName').control()._el()
    	.find('select, textarea').attr('title', 'tooltip text')
    
  • AgneseB
    Member
    Member for: 5 years 12 days
    #17 by AgneseB Dec 8 ’14 at 09:35

    It works perfectly! Thank you!

  • Hubbaroo
    Member
    Member for: 6 years 2 months 21 days
    #18 by Hubbaroo Jun 23 ’15 at 05:56

    How can I make the tool tip work with both the server and client side people picker?

     

    Thanks

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 7 months 4 days
    #19 by rostislav Jun 24 ’15 at 07:15

    [#18]:

    Please use the following methods:

    //this is for client side people picker
    fd.field('InternalName').control()._el().find('.sp-peoplepicker-topLevel').attr('title', 'tooltip text goes here');
    
    //and this is for server side
    fd.field('InternalName').control()._el().find('[name="upLevelDiv"]').attr('title', 'tooltip text goes here');
    
  • tjon.kim
    Member
    Member for: 4 years 7 months 24 days
    #20 by tjon.kim Feb 1 ’17 at 08:04

    [#19]: Hi, May I know how you would do it for "calculated column" in the value not the title, as well as the dropdown for lookups? Thanks.

Displaying 11 to 20 of 22 messages