web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Problem: Dependent OptionSet Form

(0) ShareShare
ReportReport
Posted on by 1,670

i created 2 picklist named "Pays" and "Region" in the lead entity, then i upload the xml file as web resources :

<DependentOptionSetConfig entity="lead" >
 <ParentField id="new_region_fr"
              label="Région">
  <DependentField id="new_departement"
                  label="Département" />
 
 <Option value="100000000" label="Alsace">
   <ShowOption value="100000000"
               label="Bas-Rhin" />
   <ShowOption value="100000001"
               label="Haut-Rhin" />
  </Option>

  <Option value="100000001" label="Aquitaine">
   <ShowOption value="100000002"
               label="Dordogne" />
   <ShowOption value="100000003"
               label="Gironde" />
  </Option>
 
 </ParentField>
</DependentOptionSetConfig>

i respected all steps in the link :

https://msdn.microsoft.com/en-us/library/gg594433.aspx


but, all value visible in the department !

any solution

*This post is locked for comments

I have the same question (0)
  • Ammar Zaied Profile Picture
    1,670 on at
    RE: Problem: Dependent OptionSet Form

    i added SDK.DependentOptionSet.js and SystemsOptionSetConfig.xml

    "404 Not Found" web resource not found !

    0677.Sans-titre.png

  • Verified answer
    Ammar Zaied Profile Picture
    1,670 on at
    RE: Problem: Dependent OptionSet Form

    Solution :

    In the Onload event for the form, configure the event handler to call the SDK.DependentOptionSet.init function and pass in the name of the XML web resource as a parameter. Use the field on the Handler Properties dialog box to enter: "sample_TicketDependentOptionSetConfig" not "sample_TicketDependentOptionSetConfig.xml"

    into the field Comma separated list of parameters that will be passed to the function.

    because "sample_TicketDependentOptionSetConfig.xml" can generate error "Server error 404 nto found "

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Wayne Walton Profile Picture

Wayne Walton 2

#2
Good.Panos Profile Picture

Good.Panos 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans