Cascading Drop Down Initial Filter

Forums Cascading dropdowns Cascading Drop Down Initial Filter

This topic contains 5 replies, has 2 voices, and was last updated by  Alexander Bautz 2 months, 1 week ago.

  • Author
    Posts
  • #16302

    Kasey
    Participant

    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 2 months, 3 weeks ago by  Kasey.
  • #16310

    Alexander Bautz
    Keymaster

    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

  • #16313

    Kasey
    Participant

    I confirmed I’m using 3.7.1 Beta for front and back. Should I go back to 3.7.0?

  • #16402

    Alexander Bautz
    Keymaster

    Hi,
    I have recreated the issue and have posted a new version here

    Could you try it and let me know how it worked out?

    Alexander

    • #16413

      Kasey
      Participant

      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.

  • #16416

    Alexander Bautz
    Keymaster

    Sorry about that – it was a typo in the query function for pre SP2013. I have updated the file.

    Alexander

You must be logged in to reply to this topic.