SPCascadeDropdowns and form save error

Mar 28, 2012 at 10:39 AM

I am having issues saving a form when using SPServices - SPCascadeDropdowns. Other functions from SPServices work fine in other CEWP's and forms. None of my forms are custom and I am using the latest version of SPServices and jQuery. To help in troubleshooting I even created a new list and tried it on a new form and I still get a "An unexpected error has occurred" when trying to save the form. Here is the code:

 <script type="text/javascript" src="../../Javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../../Javascript/jquery.SPServices-0.7.1a.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  relationshipList: "Domains",
  relationshipListParentColumn: "Title",
  relationshipListChildColumn: "Domain",
  parentColumn: "Forest",
  childColumn: "Domain"
  ,debug: true

any thoughts?




Mar 28, 2012 at 1:01 PM

My guess is that your Domain column isn't a lookup into the Domain column in the Domains list. You'll get that error if it's possible to choose a value that isn't valid in the current list.


Mar 28, 2012 at 1:27 PM



Thanks for the fix! I am doing so much right now it slipped my mind when creating the column. I really need to slow down, ;)



Mar 28, 2012 at 1:31 PM

No problem. Glad that was the answer!