Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Removing OptionSet Values in ADX Portal

(0) ShareShare
ReportReport
Posted on by

Hi Team,

I have a requirement to implement dependent OptionSet in ADX Portal. Tried to implement JavaScript but it didn't worked.

Below is the code.

$(document).ready(function () {
    $("#casetypecode").load(onCaseTypeLoad);
    $("#casetypecode").load();

    $("#casetypecode").change(onCaseTypeChange);
    $("#casetypecode").change();

    $("#new_casesubtype").change(onCaseSubTypeChange);
    $("#new_casesubtype").change();
});

function onCaseTypeLoad() {
    $("#casetypecode").remove();
    $("#new_casesubtype").remove();
    $("#new_casecategory").remove();
    $("#casetypecode").append('<option value="596930004">Optionset1</option>');
}

function onCaseTypeChange() {
    $("#new_casesubtype").append('<option value="596930014">Text1</option>');
    $("#new_casesubtype").append('<option value="596930015">Text2</option>');
    $("#new_casesubtype").append('<option value="596930016">Text3</option>');
    $("#new_casesubtype").append('<option value="596930017">Text4</option>');
    $("#new_casesubtype").append('<option value="596930018">Text5</option>');
    $("#new_casesubtype").append('<option value="596930019">Text6</option>');
    $("#new_casesubtype").append('<option value="596930020">Text7</option>');
}

function onCaseSubTypeChange() {
    $("#new_casecategory").append('<option value="596930017">ADX Portal</option>');
}


*This post is locked for comments

  • lauralca Profile Picture
    lauralca 10 on at
    RE: Removing OptionSet Values in ADX Portal

    Hello Kumar R,

    I have the same problem. How did you get it fixed?

    Thank you very much!

  • Verified answer
    Kumar R Profile Picture
    Kumar R on at
    RE: Removing OptionSet Values in ADX Portal

    Fixed the issue and sorted.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Removing OptionSet Values in ADX Portal

    Hi Kumar,

    The requirement could be little complex

    Please follow the below thread.

    community.dynamics.com/.../225647

    Hope this helped.

    Thanks

    Phanidhar

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,489 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