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

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Neil Parkhurst Profile Picture
    10,727 User Group Leader on at

    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

  • Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

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

  • Abhishek_Sinha Profile Picture
    665 on at

    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

  • Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans