Hi,
I have very little knowledge of javascript, but what's wrong with the following code which is active on field change:
function setAdressCountryFromOptionSet()
{
var CountryFieldText = Xrm.Page.getAttribute("x_countrylistglobal").getText();
Xrm.Page.getAttribute("address1_country").setValue(CountryFieldText);
}
x_countrylistglobal = option set field where I'm trying to get the text from, not the value, whenever something is selected (I guess onChange).
Any help greatly appreciated!
Thanks
*This post is locked for comments
I have the same question (0)