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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Decimal Number Field Out-of-the-Box Validation Triggering before OnChange Event

(0) ShareShare
ReportReport
Posted on by 5

I am trying to add a custom error message to a form on a decimal field type. The validation should trigger when a user enters text value in the decimal number field.

The issue is that whenever the user enters a text value in the decimal number field type and removes focus from the field, an out-of-the-box error message icon is displayed next to the field. This seems to happen before the OnChange event of the field is fired. So, there is no way for me to override this validation. Any suggestion on how I can override this error message could be very helpful.

Below is a screenshot of the error with the range-bound decimal number field. 

pastedimage1612241193851v1.png

I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi

    Thank you for your query.

    As far as I know, you cannot override this validation.

    An alternative is to use a Text field instead and do your custom validation and copy its value to a hidden decimal field (if you need it in decimal).

  • gregmulaney Profile Picture
    5 on at

    Hi Wahaj, Thank you for your response. Do you know what process triggers that validation. Is there anyway I can find out the event that this validation is being triggered on? What you are suggesting would be doable for a new entity. But for an entity with existing records, this path could be tricky. I am trying to avoid creating parallel fields as much as possible. Thank you.

  • Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    As far as I know, you cannot do this in a supported manner.

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans