Wednesday, 8 August 2012

Get OptionSet attribute value and text using javascript in CRM 2011

In this article , I am going to explain how to get OptionSet value and text

var optionset = Xrm.Page.getAttribute("attributename")

Get Optionset Text
var text = optionset.getText();

Get Optionset Value
var value = optionset.getValue();

No comments:

Post a Comment

Note: only a member of this blog may post a comment.