proper way to update a picklist for this scenario? RRS feed

  • Question

  • Hello - I'm trying to figure out the proper way to update a picklist in the following scenario:

    1. I want to remove an option from a picklist
    2. I want the picklist option to be available for Advanced Find so the user can search for records that have already been created with that picklist option

    I removed the picklist option through Customization which removed the picklist option from the form but this action also removed the option as a lookup option on the Advanced Find view.

    I should be able to remove the picklist option from the form with javascript on form load.  But is this the most proper way to handle this scenario in CRM?

    Thursday, June 13, 2013 6:47 PM


  • Hi dotnetteramg123,

    Here in you scenario you want to get that option value available in Advance Find Search query, So for this it is better to hide the option value on Form Load event .

    You can use below script for hide the Optionset Values :

    function HideOption() {
    var pickListField = Xrm.Page.getControl(“fieldName”);

    Hope this will help you. 

    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Thursday, June 13, 2013 8:47 PM