How To Get Selected Value From A Option Set Crm 4 Dynamics 2011 Online
This is a question related to using javascript with crm 4 2011 online I created an optionset -status: open,closed and a onchange event handler that calls the function run with the
Solution 1:
these are the right methods with an optionset attribute, for more information visit this link:
http://msdn.microsoft.com/en-us/library/gg334409.aspx
get the text of selected option
Xrm.Page.getAttribute("fieldname").getText();
get the numeric value of selected option
Xrm.Page.getAttribute("fieldname").getValue();
Solution 2:
try
To Get the selected text of a OptionSet field
Xrm.Page.getAttribute("CRMFieldName").getSelectedOption().text;
To Get the selected value of a OptionSet field
Xrm.Page.getAttribute("CRMFieldName").getSelectedOption().value;
Post a Comment for "How To Get Selected Value From A Option Set Crm 4 Dynamics 2011 Online"