Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Have created 3 lists.
1) Oraganization Name - Contains Org name
2) Employee Name - Contains Employee name and using look-up have added the Organization name for each employee
3) Database - Here I am trying to get the cascade dropdown.

But cascading drop down in not working. It's showing all the employee names. It should display on those employees for the selected company

<script src="https://site name/jquery.min.js"></script><br /><br />
<script src="https://sitename/jquery.SPServices.min.js"></script><br /><br />
<script type="text/javascript"> <br /><br />
$(document).ready(function ()<br /><br />
{<br /><br />
    $().SPServices.SPCascadeDropdowns(<br /><br />
    {<br /><br />
        relationshipList: "Employee Name",<br /><br />
        relationshipListParentColumn: "Organization Name",<br /><br />
        relationshipListChildColumn: "Title",<br /><br />
        parentColumn: "Organization Name",<br /><br />
        childColumn: "Employee Name",<br /><br />
        debug: true<br /><br />
    })<br /><br />
})<br /><br />
</script>


What I have tried:

<script src="https://site name/jquery.min.js"></script><br /><br />
<script src="https://sitename/jquery.SPServices.min.js"></script><br /><br />
<script type="text/javascript"> <br /><br />
$(document).ready(function ()<br /><br />
{<br /><br />
    $().SPServices.SPCascadeDropdowns(<br /><br />
    {<br /><br />
        relationshipList: "Employee Name",<br /><br />
        relationshipListParentColumn: "Organization Name",<br /><br />
        relationshipListChildColumn: "Title",<br /><br />
        parentColumn: "Organization Name",<br /><br />
        childColumn: "Employee Name",<br /><br />
        debug: true<br /><br />
    })<br /><br />
})<br /><br />
</script>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900