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.
MIT License
208 stars 61 forks source link

Error in $().SPServices.SPDropdownCtl #70

Open lscorcia opened 6 years ago

lscorcia commented 6 years ago

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.