I have the same scenario as the author of this discussion: https://spservices.codeplex.com/discussions/471893. I have the following script in a CEWP on the newform.aspx of MyList.
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.2.min.js">>
<script type="text/javascript" language="javascript" src="/Style%20Library/Scripts/jquery.SPServices-2013.01.js"></script>
<script type="text/javascript"> $(document).ready(function() { $().SPServices.SPCascadeDropdowns({ listName: "MyList", relationshipList: "Regions", relationshipListParentColumn: "Country", relationshipListChildColumn: "Title", parentColumn: "Country", childColumn: "Region", debug: true }); });</script> Regions is a list containing two fields, Country which is a lookup to the Countries list, and Title which is the name of the region. MyList contains two lookup fields to the fields Country and Title in the Regions list. My first dropdown displays the countries, but my second one never displays any regions at all, no matter what I choose in the country field. When debugging in Firefox, I noticed that xData in the method below throws the error "[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.2.min.js :: .send :: line 6" data: no]"
// Get information about the childColumn from the current list
$().SPServices({
}
});
Any ideas on what to do?
Thank you!
Helena
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.2.min.js">>
<script type="text/javascript" language="javascript" src="/Style%20Library/Scripts/jquery.SPServices-2013.01.js"></script>
<script type="text/javascript"> $(document).ready(function() { $().SPServices.SPCascadeDropdowns({ listName: "MyList", relationshipList: "Regions", relationshipListParentColumn: "Country", relationshipListChildColumn: "Title", parentColumn: "Country", childColumn: "Region", debug: true }); });</script> Regions is a list containing two fields, Country which is a lookup to the Countries list, and Title which is the name of the region. MyList contains two lookup fields to the fields Country and Title in the Regions list. My first dropdown displays the countries, but my second one never displays any regions at all, no matter what I choose in the country field. When debugging in Firefox, I noticed that xData in the method below throws the error "[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.10.2.min.js :: .send :: line 6" data: no]"
// Get information about the childColumn from the current list
$().SPServices({
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;
});
});}
});
Any ideas on what to do?
Thank you!
Helena