Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Unassigned: SPComplexToSimpleDropdown - required fields get renamed without the 'Required Field' appended to the field name [10262]

$
0
0
Hi Marc,

Hi Marc,

I believe I've found another instance in which the [Office 365 Update Changes ‘Display Name’ on Required Fields](http://sympmarc.com/2014/01/23/office-365-update-changes-display-name-on-required-fields/) issue is causing a problem, this time on the SPComplexToSimpleDropdown function.

When using this function on a required field, both the new simple dropdown and the hidden complex dropdown get created with the field's name, but without 'Required Field' appended to the end. So if my complex field starts as "Deal Required Field", the two resulting dropdowns have the Title set as "Deal".

Where this becomes a problem is when dealing with multiple browsers. Since the function is smart enough to do nothing if the dropdown isn't complex, the field winds up with an inconsistent name. IE will have the field as "Deal", but Chrome will have it as "Deal Required Field". This is an issue if you later need to refer to this field with jQuery or something similar.

Thanks!
John Riganati
Comments: I think that's actually where the problem comes in. Here's an example: A required field called "Deal" results in a dropdown with > 20 items. In IE, this initially gets generated as a complex dropdown called "Deal Required Field". SPComplexToSimpleDropdown sees the complex dropdown and converts it to a simple dropdown, renaming the field to "Deal" (without Required Field appended to the end). In Chrome, this same field initially gets generated as a simple dropdown called "Deal Required Field". SPComplexToSimpleDropdown is smart enough to see that it is already a simple dropdown and leaves it alone. Its name in this case remains "Deal Required Field". The end result is that the field is a simple dropdown in both browsers, but the name does not match between the browsers. Thanks - John

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>