Search This Blog

Thursday, November 12, 2015

Check whether control value is changed or not in CRM

getDirty in CRM

If you have any doubt in the post please post comments. I will try to solve your problem.

It is one of the method in Xrm.Page.getAttribute. This method is used to check whether control value is changed from previous value.

Syntax:
Xrm.Page.getAttribute(control schema name).getIsDirty();

Control value    Status
Changed            true
Not Changed     false

Note:
The value in the control is India and it changed to Indian without saving the entity if you again change the value to India then getDirty returns false. Because the value in the control is not changed from previous value

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.