Jun 12, 2014 at 11:35 PM
Edited Jun 12, 2014 at 11:36 PM
I have a need for two dropdowns in my pages library to work together. The user selects Category, and then a sub Category. My code in the editform.aspx is as follows:
relationshipList: "HERE I HAVE MY GUID",
childColumn: "Sub Categories",
The lists are setup as follows.
Categories list has 3 Columns:
Order (used elsewhere in the site)
CatURL (used elsewhere in the site)
Sub Categories list has 6 Columns:
Link URL (used elsewhere in the site)
Link Order (used elsewhere in the site)
Categories (Lookup to Categories list)
Categories:Order (used elsewhere in the site)
Categories:CatURL (used elsewhere in the site)
__The Pages Library has two lookup columns in addition to regular columns.
Those lookup columns are:__
Categories (Lookup to Categories Title)
Sub Categories (Lookup to Sub Categories TItle)
An example of the relationship is this:
Customer Lifecycle Management
When a user comes to the
That was the point at which I realized I had copied the incorrect GUID for the list. That folks was a PICNIC.
Thank you Marc for some amazing script.
Jun 13, 2014 at 2:39 AM
Keep in mind that you can use the list name rather than the GUID, e.g., "Announcements".
You're welcome. Are you all set?
Yep! The name could change so the guid makes more sense in this case. Thank you again.