1 min read
Setting a table field mandatory doesn’t allow zero to enter
In Dynamics AX if you set any integer or real type field of a table mandatory, then it would not allow 0 to enter in that field. Whenever a user enters 0 and move to the next field the following infolog message appears.
Field ‘fieldname’ must be filled in.
But if you don’t like this error message and need something else to display then provide a check in the code. For example by overriding the validateField() method.