Reset Picklist Options to its original Values RRS feed

  • Question

  • Hi,

    Is there a way to reset picklist options to its original values (when the page initially loaded) in CRM 2013/2015?

    Depending on some business logic, I am removing some of the options from the picklist. Since in CRM 2011, after each save, the page was reloading, all the initial values were coming back and based on my logic I could remove some.

    But in 2013/2015, since the page is not reloading any more, after i remove some of the options the first time, they never come back. Is there any way to get them back without explicitly adding them back in JavaScript?

    Basically what I need is a mechanism to reset the picklist to its original state with the options available when the page got loaded.

    Is there a method that would reset the picklist?



    Wednesday, March 25, 2015 5:36 PM

All replies

  • Hi catainsina,

    you can add the below script in your java script code to save and refresh the page so that your pick list will load with original values.

    Xrm.Page.data.refresh(save).then(successCallback, errorCallback);

    Thursday, March 26, 2015 4:50 AM
  • Thanks for your reply.

    I have tried this already. The problem is I do not want to call save from within my JavaScript. And if I use the following command: 


    It does not reload the page and does not bring optionset original values.




    Thursday, March 26, 2015 1:25 PM