Cascading Drop Down Initial Filter

Home Forums Cascading dropdowns Cascading Drop Down Initial Filter

Viewing 4 reply threads
  • 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 7 years, 8 months 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

              Viewing 4 reply threads
              • You must be logged in to reply to this topic.