Changes to Options
Standardized the option names to match the MSDN documentation. Specifically:
async: true, // (Optional) Allow the user to force async
Object Required error - GetListItems on filtered column Title is required
The SPCascadeDropdowns function lets you set up cascading dropdowns on SharePoint forms. What this means is that you can enforce hierarchical relationships between column values. The function uses the GetListItems operation of the Lists Web Service to refresh the allowable values based on relationships which are maintained in reference lists. By implementing this function, you can remove all of the coding requirements to manage the hierarchical relationships (once it is in place) and let your users manage the content.
Currently, the function only works if there are fewer than 20 options in the dropdowns. As you may know, for some reason SharePoint changes the control it uses if there are 20 or more options. We’ll get that logic into the function soon, but we wanted to make this simpler logic available.
relationshipList: "", // The name of the list which contains the parent/child relationships
relationshipListParentColumn: "", // The name of the parent column in the relationship list
relationshipListChildColumn: "", // The name of the child column in the relationship list
parentColumn: "", // The name of the parent column in the form
childColumn: "" // The name of the child column in the form
- Relationship list contains two columns: Title (which represents childColumn) and parentColumn
- The dropdown for childColumn is a lookup into relationshipList's Title column