Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Get the Field Level Error Message Using JavaScript

Posted on by 210

Hi Folks. I need to get the control of the file type field and get the below error message. I could not find any property or method available to check. 

var ErrorMessage = formcontext.getcontrol("fieldname").(Method Name)

 

pastedimage1668160209671v1.png

Can you please let me know if I can use any Method Name or property to check whether it has field level error message. 

  • Suganthar_Satkunam Profile Picture
    Suganthar_Satkunam 210 on at
    RE: Get the Field Level Error Message Using JavaScript

    It is a Microsoft out of the Box message. I need to validate the error message and perform some logic

  • Suggested answer
    furkank Profile Picture
    furkank 535 on at
    RE: Get the Field Level Error Message Using JavaScript

    Hi, Who shows that error message? Is it an error shows by you? If then, please don't write it as hard-coded. Store the error message as a "Key-Message" pair in a resource file, then reference there again to read the message.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans