Hi,
I have a optionset on the accounts entity and a multiple lines of text field on the form. When you select different options on the optionset, I have written some javascript which generates text in the multiple lines of text field. This
works fine, except when I have selected numerous options and text has been generated, when I select the null the text in the multiple lines of text field is not cleared. I have the below code, can anyone explain to me why this doesnt fire (exception is generated).
if(Xrm.Page.getAttribute("optionset").getSelectedOption() != null)
{
Xrm.Page.getAttribute("multiplelinesoftext").setValue(null);
}
Thanks