This project has moved and is read-only. For the latest updates, please go here.

SPCascadeDropdowns - 1 parent; multiple children

Oct 9, 2015 at 12:12 AM

I have 2 drop down lists which are filtered by 1 parent.

When I change the parent selection, the first drop down list get filtered but the second one.

After investigating I found that the responseXML property in the code below is not available. But xData has responseText instead.

I am using SPServices 2014.01 and SharePoint 2013.
// Get information about the childColumn from the current list
            operation: "GetList",
            async: false,
            cacheXML: true,
            listName: opt.listName,
            completefunc: function (xData) {
                $(xData.responseXML).find("Fields").each(function () {
                    $(this).find("Field[DisplayName='" + opt.childColumn + "']").each(function () {
                        // Determine whether childColumn is Required
                        childColumnRequired = ($(this).attr("Required") === "TRUE") ? true : false;
                        childColumnStatic = $(this).attr("StaticName");
                        // Stop looking; we're done
                        return false;
When I changed to use responseText, both drop down lists work because they have different child column's static names.
Oct 9, 2015 at 3:50 AM
Sorry, but I'm not understanding what the issue is. Can you show how you are calling SPCascadeDropdowns?