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)

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

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