I have an Option List that is populated with Years. As a year expires, I'd like to remove it from being selected from the Option List. I'd like this value to continue to display on historical records, but I seem to be having great difficulty in making this happen.
- Removing it the actual Option set seems to remove the reference to the "2014" label, so historical records show up as blank. This is not acceptable.'
- Utilizing the Javascript solution of Xrm.Page.getControl('field name').removeOption(value); also seems to come with the drawback that when viewing this a historical via the Form...it also blanks out the field making look like it was never set. Not really acceptable.
- I've tried to utilize unsupported javascript to select the particular Options that I want to remove and remove them. I've gotten it to work for IE10, but cannot seem to get it to correctly run in IE9. It doesn't seem to understand which frame to look in.
- function FilterFiscalYear(){ $("select[attrName='sgs_fiscalyear'] option[title='2014']").each( function() { $(this).remove(); });}
I'm entirely baffled as to why it's so difficult to remove an option from an Option set, but leave the historical data displaying that value that's no longer selectable.
*This post is locked for comments
I have the same question (0)