sympmarc / SPServices

SPServices is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in $().SPServices.SPDropdownCtl

lscorcia opened this issue · comments

Hello,
I have found a bug in SPDropdownCtl when used on SP2010 (possibly only on localized sites, using Italian here and I don't have an English site around for further testing).

Calls to $().SPServices.SPDropdownCtl fail when the dropdown is a required field. In this case Sharepoint sets the title attribute on the select as ' Campo obbligatorio' (which translates as ' Required field'); thus the selector $("select[Title='" + opt.displayName + "']") fails.
This causes lots of problems in filter dropdowns and other customizations which worked fine under previous versions.

Right now the workaround is to explicitly set the tooltip using jquery before activating SPServices functions, since Sharepoint:FormField doesn't allow setting the title attribute in server side code.