Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Enable/Disable individual option object in optionset

(0) ShareShare
ReportReport
Posted on by

This was a very useful feature in the DOM.  It enabled an individual option in a set to be disabled when it became obsolete or was not relevant to context.

The feature allowed existing data to be viewed that already had the option, but the option could not be selected for new data.

This is often the case in business where new options replace existing options.

This feature should be supported by CRM.

*This post is locked for comments

  • RE: Enable/Disable individual option object in optionset

    Thanks Abhishek, but that will not solve the problem.  I have come up with a clunky but viable work around that uses javascript on the onchange event for the optionlist to prevent selection of options deemed invalid.

  • RE: Enable/Disable individual option object in optionset

    Thanks Guido.  I had sort of arrived at that conclusion myself, but it is good to have confirmation.  I think for now I will write a reactive method that will display an error and prevent selection of the option in the optionset's onchange event. A bit clunky, but ok for the number of times I will need it.

  • Abhishek_Sinha Profile Picture
    Abhishek_Sinha 665 on at
    RE: Enable/Disable individual option object in optionset

    Hi ,

    You can use  dependent picklist option. There is a source code also . Based upon your requirement you can customize.

    msdn.microsoft.com/.../gg594433.aspx

    Thanks,

    Abhishek

  • RE: Enable/Disable individual option object in optionset

    Thanks Guido, but I need the option to be there, visible, but not selectable, disabled not removed.

  • RE: Enable/Disable individual option object in optionset

    Thanks Neil, but I need the option to remain, but be disabled.  Visible, but not selectable.

  • Neil Parkhurst Profile Picture
    Neil Parkhurst 10,727 User Group Leader on at
    RE: Enable/Disable individual option object in optionset

    This post contains a code example of how to add and remove optionset values.  Hopefully it will help you.

    neilparkhurst.com/.../javascript-control-optionset-values

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans