Getting the value out of a cascading dropdown.

Forums vLooup for SharePoint Getting the value out of a cascading dropdown.

Viewing 1 reply thread
  • Author
    • #26990
      Bryan R Babbitt

      Hi Alex ,

      I created a cascading dropdown that has 3 choices in it. Now I am attempting to fire off a rest call based off the selected choice. However, I can’t seem to find the right selector to even get the selected value to pop in an alert based on the choice. Can you provide an example on how to pull out these values using jquery or a custom javascript function? I may not use the rest call, I really just want to show a definition msg on the screen based on the value chosen in the select box.

      Thanks in advance for any help you can provide.


    • #26997
      Alexander Bautz

      When using the cascading dropdown functionality the value is stored in a single line of text field for each of the levels of the cascading dropdown.

      To get the value you must use something like this:

      function callMeOnChangeOfYourField(){
        var level1 = getFieldValue("Level1FieldInternalName");
        var level2 = getFieldValue("Level2FieldInternalName");
        var level3 = getFieldValue("Level3FieldInternalName");
        alert(level1 + " - " + level2 + " - " + level3);

      Change the field names to match your fields and call the function from a rule triggering on change of the last field in your cascading dropdown.


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