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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Javascript help - Creating multiple Dependent OptionSets

(0) ShareShare
ReportReport
Posted on by 3,070

Hi all,

I'm hoping someone with more javascript knowledge than me can help.  I've been following the instructions on the MSDN sample to create Dependent OptionSets (https://msdn.microsoft.com/en-us/library/gg594433.aspx) on my Account entity.  I've managed to implement this successfully, however I am having a bit of trouble with utilising it twice on the same form.  

To give a brief overview:  We currently have a "Region" and "Sub-Region" selector on our account form, and the "Sub-Region" OptionSet is filtered dependent upon the "Region" selected.  I've managed to get this working by following the instructions in the MSDN sample.

I've now been requested to add a filter to select a business type based on 3-tiered options (i.e. Selecting a Tier One option filters the Tier 2 options, which then filters the Tier 3 options).  Again I can get this to work following the instructions in the MSDN sample.

My problem: I cannot get both dependent OptionSets to operate on the same form.  I am assuming it is a function conflict, but my java skills are fairly limited so I'm hoping someone can offer some advice

Thanks,

Ryan

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi Ryan,

    Did you try this tool: crmoptionsets.azurewebsites.net

    it will be easy for you.

    Thanks

  • Ryan Maclean Profile Picture
    3,070 on at

    Hi Mahen,

    I've tried using this tool and, while it works fine for creating one set of dependent optionsets, i can't seem to get it to function if there are two sets on the same form.

    Thanks,

    Ryan

  • Suggested answer
    JohnAnonymous Profile Picture
    5,241 on at

    Can you post your code? My guess is that you are reusing some code where it shouldn't be reused.

  • Verified answer
    Ryan Maclean Profile Picture
    3,070 on at

    thanks for your help guys.  

    HIMBAP, I was using the CRM Option Sets solution provided by Guido, and he very kindly offered me some help, and that has resolved the issue, and i think the update is now available on his website for downloading.

    For clairification though, the issue was related to a timeout within the script, and the fact that I had two JSON configurations using the same functions.  The issue was resolved by combining the JSON configurations, so there should only be one JSON per form.

    Thanks,

    Ryan

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
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans