Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dependent Pick list not working...

(0) ShareShare
ReportReport
Posted on by 2

I have a dependent option set created (the xml and the init).  When I go to the parent field and put something in there, the next field becomes unlocked but has not options listed.  I do have the field(s) in the comma Handler Properties for the parameters and I do have the xml in the parameter section when form loads.  When I check the box for Pass execution context as first parameter, the options now show, but not correctly.  When I uncheck the box, nothing shows in the list again.  I am not getting any errors either. 

Any help is greatly appreciated, thank you.

*This post is locked for comments

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    Nevermind, found my mistake.

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    Sorry one other issue that just came up.  When I have the below criteria, the Child field remains locked even though I picked a Report Type of either Automated or On-Demand.

    3716.pic3.png

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    Genius....thank you very much for all of your help, this works great now.

  • Verified answer
    Guido Preite Profile Picture
    Guido Preite 54,073 Moderator on at
    RE: Dependent Pick list not working...

    then uncheck the "strict selection" checkbox, it will allow you to select options under more than 1 category.

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    It is like that once I select the option for Commercial, those options I can't select again, when I need to.

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    When I do that and go to commercial and pick everything but 1, then move to Medicare Part D, there is only one option to chose when I actually need all the options from Commercial plus 1 more.  Then Medicaid is everything but 1, same for the other 2.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,073 Moderator on at
    RE: Dependent Pick list not working...

    ok,

    first remove all the dependencies expect the first (you use the X in the top right corner) so you have just the first 1

    now on the first dependency you only selected the items for "Commercial", you need to open the dropdown for "Medicare PartID" and select the items there, after for "Medicaid" and go on until "Exchange".

    The Preview section will help you to check if the selections are working as you plan before you update the JSON.

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    8117.pic2.pngHere is what I am doing (this is the first 2 options in the script)

  • Guido Preite Profile Picture
    Guido Preite 54,073 Moderator on at
    RE: Dependent Pick list not working...

    I don't know how you are selecting the items inside my generator, but because you have just two fields (nhs_recordtype and nhs_programtype) you need to add a just a single dependency, and inside each dropdown (the ones just under the "strict selection" checkbox) select the items you want to display.

    in case you don't fix, post a screenshot

  • USA80 Profile Picture
    USA80 2 on at
    RE: Dependent Pick list not working...

    Here is my JSON Config file:  (the only one that is working is the very last one, not sure why the rest don't work)

    [

    {

     "parent": "nhs_recordtype",

     "child": "nhs_programtype",

     "options": {

      "127130000": [

       "127130100",

       "127130101",

       "127130102",

       "127130111",

       "127130103",

       "127130104",

       "127130000",

       "127130105",

       "127130107",

       "127130106",

       "127130108",

       "127130109",

       "127130110"

      ],

      "127130001": [],

      "127130002": [],

      "127130003": [],

      "127130004": []

     }

    },

    {

     "parent": "nhs_recordtype",

     "child": "nhs_programtype",

     "options": {

      "127130000": [],

      "127130001": [

       "127130100",

       "127130101",

       "127130102",

       "127130111",

       "127130103",

       "127130104",

       "127130000",

       "127130105",

       "127130107",

       "127130106",

       "127130112",

       "127130108",

       "127130109",

       "127130110"

      ],

      "127130002": [],

      "127130003": [],

      "127130004": []

     }

    },

    {

     "parent": "nhs_recordtype",

     "child": "nhs_programtype",

     "options": {

      "127130000": [],

      "127130001": [],

      "127130002": [

       "127130100",

       "127130101",

       "127130102",

       "127130111",

       "127130103",

       "127130104",

       "127130000",

       "127130105",

       "127130107",

       "127130106",

       "127130108",

       "127130109",

       "127130110"

      ],

      "127130003": [],

      "127130004": []

     }

    },

    {

     "parent": "nhs_recordtype",

     "child": "nhs_programtype",

     "options": {

      "127130000": [],

      "127130001": [],

      "127130002": [],

      "127130003": [],

      "127130004": [

       "127130100",

       "127130101",

       "127130102",

       "127130111",

       "127130103",

       "127130104",

       "127130000",

       "127130105",

       "127130107",

       "127130106",

       "127130108",

       "127130109",

       "127130110"

      ]

     }

    },

    {

     "parent": "nhs_recordtype",

     "child": "nhs_programtype",

     "options": {

      "127130000": [],

      "127130001": [],

      "127130002": [],

      "127130003": [

       "127130100",

       "127130101",

       "127130102",

       "127130111",

       "127130103",

       "127130104",

       "127130000",

       "127130105",

       "127130107",

       "127130106",

       "127130108",

       "127130109",

       "127130110"

      ],

      "127130004": []

     }

    }

    ]

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans