locked
Dependant Option sets RRS feed

  • Question

  • In the CRM 2013 solution it was possible to have 2 fields filtered based on the option selected in another. In the CRM 2015 solution this doesn't seem to work. Has anyone got this working?

    Thanks

    Pete


    Pete

    Wednesday, April 8, 2015 10:35 AM

All replies

  • Hello Pete,

    Approaches to implementation of Dependent Picklists remain the same. Could you please provide code you use for dependent picklists?


    Dynamics CRM MVP
    My blog

    Wednesday, April 8, 2015 11:02 AM
    Moderator
  • Here it is, cut down a bit true values removed but essentially the same

    <DependentOptionSetConfig entity="task">
     <ParentField id="new_type" label="new_type" >
     <DependentField id="new_tasktype" label="new_tasktype"/>
     <Option value="948110000"  label="Cat 1" >
       <ShowOption value="948110035" label="Value 01"/>
     </Option>
     <Option value="948110001"  label="Cat 2" >
       <ShowOption value="948110000" label="Value 2"/>
     </Option>
     <Option value="948110002" label="Cat 3" >
       <ShowOption value="948110061" label="Value 3"/>
     </Option>
    </ParentField>
    <ParentField id="new_type" label="new_type" >
    <DependentField id="new_lettertemplate" label="new_lettertemplate"/>
     <Option value="948110000" label="Cat 1" >
       <ShowOption value="948110056" label="Value A"/>
     </Option>
     <Option value="948110001" label="Cat 2" >
       <ShowOption value="948110029" label="Value B"/>
     </Option>
     <Option value="948110002" label="Cat 3" >
       <ShowOption value="948110043" label="Value C"/>
     </Option>
    </ParentField>
    </DependentOptionSetConfig>


    Pete

    Wednesday, April 8, 2015 11:25 AM
  • Seems that the only right way for you is to troubleshoot code.

    Dynamics CRM MVP
    My blog

    Wednesday, April 8, 2015 11:53 AM
    Moderator
  • It works fine for the first ParentField container, once you add a 2nd it doesn't work anymore ?


    Pete

    Wednesday, April 8, 2015 12:16 PM