Skip to main content

Notifications

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,126

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.

  • Ann2015 Profile Picture
    1,126 on at
    RE: Setting default value on a Form "integer" field

    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.

  • Blue Wang Profile Picture
    on at
    RE: Setting default value on a Form "integer" field

    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

  • Suggested answer
    Daniel Weichsel Profile Picture
    1,657 on at
    RE: Setting default value on a Form "integer" field

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans