Below is the script to retrieve dropdown value and text.
To get text
Xrm.Page.data.entity.attributes.get("vw_facilitiestype").getSelectedOption().text
Xrm.Page.data.entity.attributes.get("vw_facilitiestype").getText()
To get value
Xrm.Page.data.entity.attributes.get("vw_facilitiestype").getSelectedOption().value
Xrm.Page.data.entity.attributes.get("vw_facilitiestype").getValue();
CRM 2011 Get Dropdown Value/ Dropdown Text
Posted by Unknown at 1/03/2013 05:23:00 pm
Labels: CRM 2011, Javascript
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment