locked
Cascading Drop Down Using jQuery Code RRS feed

  • Question

  • I need help with this in a bad way!  I'm trying to create a cascading drop down list and my code is not working.

    I have created a list called "clients" as the parent and "projects" as the child.  I then created another list called "timesheets" which needs to implement these.  I have uploaded jquery*1.3.2.min.js as well as jquery.spservices-0.7.2 to my shared documents folder on the same site.

    I have tried inserting the code below to both edit and new.aspx forms.  I've done this once using content editor and once using designer.  However, it's not working!

    <script language="javascript" type="text/javascript" src=" /Shared Documents/jquery-1.3.2.min.js"></script>

    <script language="javascript" type="text/javascript" src=" /Shared Documents/jquery.SPServices-0.7.2"></script>
    <script language="javascript" type="text/javascript">

    $(document).ready(function() {`
    $().SPServices.SPCascadeDropdowns({
    relationshipList: "Projects",
    relationshipListParentColumn: "Clients",
    relationshipListChildColumn: "Title",
    parentColumn: "Client",
    childColumn: "Project",
    debug: true
    });

    });
    </script>

    Wednesday, October 31, 2012 2:17 PM

Answers

  • I suggest reading through this blog, as it looks like it will be most helpful for your current situation:

    <--http://sharepoint-works.blogspot.com/2012/02/cascading-dropdown-or-filtered-values.html-->

    Thanks,

    <--www.getsharepoint.com-->

    • Marked as answer by Jack-Gao Thursday, November 8, 2012 10:01 AM
    Wednesday, October 31, 2012 7:50 PM