web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Setting default value on a Form "integer" field

(0) ShareShare
ReportReport
Posted on by 1,128

In my form I have a field of type Int, but now by default it's all 0's for the records that are already there.

Is there any way to define a default value for that field, for all the existing records and to be inserted records ? I want to default it to blank or null values.

I can not leave the Initial Value null for this field and so it is set to a zero. If I null out the values from the form property it throws an error " Property value is invalid ".

Thank you.

I have the same question (1)
  • Suggested answer
    Daniel Weichsel Profile Picture
    on at

    Integer fields in D365 F&O are non-nullable.  To make these show as blank on forms instead of as 0, change the extended data type property "Show Zero" to "No" on the EDT of your field.

  • Blue Wang Profile Picture
    on at

    Hi Ann,

    AX does not support the concept of null values that is available in many other Database Management Systems . A field in AX always has a type and a value. For Integer, the default value is always 0.

    -

    As Daniel said, to make these show as blank on forms instead of as 0.

    You just need to change the "Show Zero" property of the Integer field, not even EDT.

    88775.PNG

  • Ann2015 Profile Picture
    1,128 on at

    Thank you both.

    We can't change the "Show Zero" property of the Integer field to No because zero is one of the valid values in the field. If I make this property to No then the field doesn't show any zero values as its always blank. This will not work for us. Will find a work around.

    Thanks again.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans