Tooltip() Help
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Could you send HTML-source of the form page and a screenshot with highlighted field that you tried to change without success to support@spform.com?
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.
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
So, please, try the code below:
Code: Select all
fd.field('InternalName').control()._el()
.find('select, textarea').attr('title', 'tooltip text')
Please use the following methods:
Code: Select all
//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');
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests