Hi,
The “IsDirty()” Method returns a Boolean value indicating if there are unsaved changes to attributes values.
Code:
//To Check if the entity is dirty
var ismodified=Xrm.Page.data.entity.getIsDirty();//To Get Dirty Fields
var attributes = Xrm.Page.data.entity.attributes.get() ;
for (var i in attributes)
{
var attribute = attributes[i];
if (attribute.getIsDirty())
alert(“attribute dirty: ” + attribute.getName());
}
Pingback: When to automatically change fields using Javascript – Hosk's Dynamic CRM Blog
Pingback: Hosk's Dynamic CRM 2011 Blog