locked
CRM 2011 set picklsit value based on other picklist value RRS feed

  • Question

  • Hi all:

    I have 2 picklists, call them plA and plB. Both have 15 values, but the text is different between the 2, the first has a name, the 2nd a longer description. So if the user selects option 4 from plA, I need plB to be set to option 4 as well. I have tried the following code, but the alert I got is "Object[object]"

      var plA = Xrm.Page.getAttribute("new_plA").getSelectedOption();
      alert(plA.value);

    I was hoping to do something as simple as:

      var plA = Xrm.Page.getAttribute("new_plA").getSelectedOption().value;
      Xrm.Page.getAttribute("new_plB").setSelectedOption(plA);

     

    Can anyone give me any advice as to how I cna do this?

    Thanks!

    John.

    Thursday, June 23, 2011 9:16 PM
    Moderator

Answers

All replies