Home › Forums › Cascading dropdowns › Cascading Drop Down Initial Filter
- This topic has 5 replies, 2 voices, and was last updated 7 years, 8 months ago by Alexander Bautz.
-
AuthorPosts
-
-
April 7, 2017 at 22:48 #16302
There is either a bug or the enhancement request I submitted was not clear. Basically I am attempting to use one list for multiple cascading drop downs filtered by a column. When I use the cascading drop down tab or the manual JavaScript method I can only get one of the cascading dropdowns to work.
Problem:
If I remove either one of the below those two targeted fields work as expected. But when I have both in custom js the first field in the first casc works but the second field does not. Both of the fields in the second casc work as expected. It’s as if the first casc filter for the second field gets changed to the second casc. Please let me know if this doesn’t make sense or you need any additional information.Example:
spjs.casc.init(
{
‘manualMode’:true,
‘lookupList’:’CascadingMaster’,
‘lookupListBaseUrl’:'{currentSite}’,
‘lookupListFields’:[“FieldValue”,”LookupValue”],
‘thisListFields’:[“Tier1″,”Tier2″],
‘dropDownDefaultvalue’:”,
‘filter’:'{“filterField”:”Title”,”filterValue”:”ProgramLookupTier1″,”operator”:”eq”}’,
‘hideEmptyDropdowns’:false,
‘autoselectSingleOption’:true,
‘clearInvalidSelection’:false,
‘debug’:false
}
);spjs.casc.init(
{
‘manualMode’:true,
‘lookupList’:’CascadingMaster’,
‘lookupListBaseUrl’:'{currentSite}’,
‘lookupListFields’:[“FieldValue”,”LookupValue”],
‘thisListFields’:[“PillarLookup”,”SubPillar”],
‘dropDownDefaultvalue’:”,
‘filter’:'{“filterField”:”Title”,”filterValue”:”ProgramLookupPillarLookup”,”operator”:”eq”}’,
‘hideEmptyDropdowns’:false,
‘autoselectSingleOption’:true,
‘clearInvalidSelection’:false,
‘debug’:false
}
);- This topic was modified 7 years, 8 months ago by Kasey.
-
April 10, 2017 at 18:12 #16310
Hi,
I set up at test here, and it looks like it works as expected. Can you open the developer tools to see if you have any error messages there?Please ensure you have loaded the correct version of SPJS-Casc in the “frontend” also.
Alexander
-
April 10, 2017 at 20:10 #16313
I confirmed I’m using 3.7.1 Beta for front and back. Should I go back to 3.7.0?
-
April 20, 2017 at 20:43 #16402
Hi,
I have recreated the issue and have posted a new version hereCould you try it and let me know how it worked out?
Alexander
-
April 20, 2017 at 23:06 #16413
This new version is throwing an error. I’m not sure if it is because I am using your last production version for everything else or not? This is the only beta file I am referencing.
-
-
April 20, 2017 at 23:36 #16416
Sorry about that – it was a typo in the query function for pre SP2013. I have updated the file.
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.