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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to validate an integer field should not accept negative values

(0) ShareShare
ReportReport
Posted on by 454

Hi,

I have to validate for an integer field. That field should not accept  - Negative values. Is there any property to set on need to code. TIA

Regards,

Ram

I have the same question (0)
  • ergun sahin Profile Picture
    8,824 Moderator on at
    RE: How to validate an integer field should not accept negative values

    At form/field(dzayn)/properties/allow negative

  • Verified answer
    Martin Dráb Profile Picture
    236,353 Most Valuable Professional on at
    RE: How to validate an integer field should not accept negative values

    It's the right property, but it would apply to a single form control. More likely, you want the same validation for all occurencies of the field in the form, and in other forms as well. Then the best approach is creating (or reusing) and extended data type with AllowNegative = No and using this EDT for the table field.

  • ergun sahin Profile Picture
    8,824 Moderator on at
    RE: How to validate an integer field should not accept negative values

    If you want table side solution you can use PositiveNumber (or a new EDT with allow Negative = No)

  • Ram Kumar Profile Picture
    454 on at
    RE: How to validate an integer field should not accept negative values

    Thanks Martin, Ergun.

    Regards,

    Ram

  • Martin Dráb Profile Picture
    236,353 Most Valuable Professional on at
    RE: How to validate an integer field should not accept negative values

    Please don't forget to mark verified answer(s).

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,028

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 579 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans