Cascading Dropdowms not Triggering change fucntion

Forums Cascading dropdowns Cascading Dropdowms not Triggering change fucntion

Viewing 1 reply thread
  • Author
    • #20270
      Diego Barrientos

      Hi Aalex,

      We have an issue with a cascade field when trying to use a change function:

      $(‘#Trainer_casc’).change(function () {
      alert(‘Trigger on Trainer’);
      trainerSelected = $(‘#Trainer_casc option:selected’).text();

      The change function never gets triggered but if we use a SPJS-Lookup field it works.

      Any idea?

    • #20295
      Alexander Bautz

      The element with ID “Trainer_casc” doesn’t exist when you run this code so you should change it like this:

      $("#dffs_Trainer").on("change","select",function () {
          alert("Trigger on Trainer");
          trainerSelected = $("#Trainer_casc option:selected").text();

      You could however just set up a rule to change on the “Trainer” field instead – did you try that?


Viewing 1 reply thread
  • You must be logged in to reply to this topic.