I am trying to get a cascading dropdown to work on list. I found some great information on about how to setup a cascading dropdown on a list but not sure what I am doing wrong because itsn't working. The hardest part is that there are no error messages that come up.
Here is what I have done. Maybe if you look at it you can help me find out what I am doing wrong.
- Created a parent list: Category (entered list of categories in the default 'title' column) - Not Required
- Created a child list: Actions (entered list of actions in the default 'title' column with a lookup column to Category with column title 'Category') - Not required
- Created custom list 'Main List' and added Category List and Action List as separate lookup columns
- Created a document library and added: jquery-1.8.1.min.js and jquery.SPServices-0.7.1a.min.js
Added script editor web part to the NewForm.aspx and added the code below:
<script language="javascript" src="/.../.../Scripts/jquery-1.8.1.min.js" type="text/javascript"></script><script language="javascript" src="/.../.../Scripts/jquery.SPServices-0.7.1a.min.js" type="text/javascript"></script>
$(document).ready(function () { $().SPServices.SPCascadeDropdowns({ relationshipList: "Actions", relationshipParentList: "Category" relationshipListParentColumn: "Category", relationshipListChildColumn: "Title", parentColumn: "Category", childColumn: "Actions", debug: true }); });</script>
More things done
- Removed required fields from all lists
- Removed multi selection from all fields
More questions
- Do I put the jQuery files in a document library, asset library, or style library?
- Do I put the code in script editor web part or content editor web part?
- Cannot I have to touch the master page and get away just adding the code to the NewForm.aspx?
Can anyone tell what I have done wrong? Thank you for your help.