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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans