Page 1 of 3
Tooltip() Help
Posted: 23 Jan 2014
by schuess
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
Re: Tooltip() Help
Posted: 24 Jan 2014
by Dmitry Kozlov
You can add
title attribute to titles of your fields with JavaScript. The value of this attribute is displayed in tooltip of the appropriate element in most browsers. Here is the code:
Code: Select all
fd.field('InternalName').title()._el().attr('title', 'tooltip text')
Please, replace
InternalName with the internal name of your field. You can also include jquery-ui library with tooltip plugin into master-page and use it in your forms.
Re: Tooltip() Help
Posted: 24 Jan 2014
by schuess
That seems really simple, but it did not work for me. The default tooltip text was not changed.
Re: Tooltip() Help
Posted: 27 Jan 2014
by Dmitry Kozlov
Please, send HTML-source of your form to
support@spform.com. Thank you.
Re: Tooltip() Help
Posted: 25 Sep 2014
by Sonoma
Hi. What was the fix for this.
I too have several fields that I would like this to work on but I am not having any luck.
Two of my fields are 'IMMDD' and 'DOI'.
fd.field('IMMDD').title()._el().attr('title', 'MM/DD/YYYY');
fd.field('DOI').title()._el().attr('title', 'MM/DD/YYYY');
I do not have any errors in the console log.
Thank you.
Re: Tooltip() Help
Posted: 26 Sep 2014
by Dmitry Kozlov
Hi,
The solution from my first comment works well. Please, make sure you use the correct internal names of the fields. If it still doesn't work, please, drop HTML-source of the form page to
support@spform.com.
Re: Tooltip() Help
Posted: 27 Nov 2014
by AgneseB
Hi,
with code:
Code: Select all
fd.field('InternalName').title()._el().attr('title', 'tooltip text')
I can see the tooltip text only when moving mouse on field label. How to add it to the input field?
Re: Tooltip() Help
Posted: 27 Nov 2014
by Dmitry Kozlov
Hi,
Please, try the following code:
Code: Select all
fd.field('InternalName').control()._el().find('input').attr('title', 'tooltip text')
Re: Tooltip() Help
Posted: 03 Dec 2014
by AgneseB
Unfortunately it doesn't work. For all fields as tooltips appears only field names. Is it possible to remove them?
Re: Tooltip() Help
Posted: 04 Dec 2014
by Dmitry Kozlov
Hi,
Do you want to remove the tooltips at all?