I feel as though I'm missing something very basic. I want to auto populate a field using data selected from my lookout field. However when I select my data nothing happens. I've tested the code so I know that works, so I feel there's an issue with the way
I'm implementing it. It's as if the onChange event doesn't occur.
Here is my code for verification
// Obtain value from contact field.
var contactValue = new Array();
contactValue = Xrm.Page.getAttribute("sgs_contact").getValue();
if (contactValue != null) {
var name = contactValue[0].name;
}
// Set value to Application Name
Xrm.Page.getAttribute("sgs_applicationname").setValue(name);
So my question is how do I implement this for the code to work? I feel like this is something so simple yet I'm overlooking it.