Click here to Skip to main content
14,826,921 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.

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


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

What I have tried:

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.

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

But cascading drop down in not working. It's showing all the employee names. It should display on those employees for the selected company
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