Thursday, November 29, 2018

Reset field value to the default optionset option with Javascript

I think you might be able to get that value by using the getInitialValue method
var defaultValue = Xrm.Page.getAttribute(osName).getInitialValue();
Xrm.Page.getAttribute(osName).setValue(defaultValue);
Hope this helps.
Thanks,
Anuj Govil

No comments:

Post a Comment