Make use of form best practice when you are created/updating forms in AX 2012. It isn't 100% bullet proof solution but it does get rid of your most common form problems.
Also keep in mind that Microsoft doesnt deliver all their forms conforming to the Form best practice. Some form are just different.
Right click on the form. Add-Ins > Check form style best practices
Notice below CustTable form, it doesn't 100% conform to this but it is not intended to be 100%. It is there to make sure you follow the form styles and the look&feel of the system is uniform.
Reference:
http://msdn.microsoft.com/en-us/library/hh397319.aspx