Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Access forms error message in code

Posted on by 14
In D365 Real-time marketing form during submission, we need to access form field error messages in JavaScript code for example Please fill out this field in this case
 
//
 
Is it possible to access out of the box validation error message from the form? Please suggest.
 
Thank you!
 
  • ElineB Profile Picture
    ElineB 272 on at
    Access forms error message in code
    Hi, 
     
    Not directly, but Megan Walker wrote a blog about how to personalize error messages: Removing Issues With Mobile Phone Numbers Realtime Forms (meganvwalker.com)
     
     
  • Suggested answer
    Cui Hao Profile Picture
    Cui Hao on at
    Access forms error message in code
    Hi,

    This error message is not available out-of-the-box, and it is not stored in the server-side or front-end of our product.
    Through the following link, we can understand that this involves form data validation, this error message is stored inside the browser, not our product itself, we can customize this error message based on the knowledge of the following link.
    https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation



    Best regards,
    Hugh Cui

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans