Tooltip() Help
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
can you give some specific instruction on how to add a tooltip?
thanks
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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:
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.
Code: Select all
fd.field('InternalName').title()._el().attr('title', 'tooltip text')
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Please, send HTML-source of your form to support@spform.com. Thank you.
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.
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.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
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.
Hi,
with code:
I can see the tooltip text only when moving mouse on field label. How to add it to the input field?
with code:
Code: Select all
fd.field('InternalName').title()._el().attr('title', 'tooltip text')
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Please, try the following code:
Please, try the following code:
Code: Select all
fd.field('InternalName').control()._el().find('input').attr('title', 'tooltip text')
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Do you want to remove the tooltips at all?
Do you want to remove the tooltips at all?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests