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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ValidationMessageFor on Entity Form

(0) ShareShare
ReportReport
Posted on by

Does anyone know if it is possible (through custom JS or otherwise) to implement validationmessagefor on entity form fields? Ideally I'd like to be able to choose between displaying error messages in the validation summary, or next to a field (using something like validationmessagefor).

*This post is locked for comments

I have the same question (0)
  • BadrinathB Profile Picture
    970 on at

    Hi Michael, You can use form notification OOB functionality for your requirement.

    www.powerobjects.com/.../dynamics-crm-alert-and-notification-javascript-methods

  • Nithya Gopinath Profile Picture
    17,078 on at

    Hi Michael,

    You could use Javascript or Business Rules to display a custom error message in dynamics CRM.

    In the case of Javascript, use the function below.

    Xrm.Page.getControl("fieldName").setNotification("ErrorMessage"); // This creates an error message near the field

    See: http://www.powerobjects.com/2015/09/23/dynamics-crm-alert-and-notification-javascript-methods/

    In the case of business rules, it is as shown below.

    11127.1.PNG

    See: https://technet.microsoft.com/en-us/library/dn531086(v=crm.6).aspx#BKMK_WhatCanBusinessRulesDo

    Hope this helps.

  • Michael D. Baldwin Profile Picture
    on at

    Sorry I should clarify - I am asking the question in the context of an MS CRM Portal Entity Form - not a Dynamics form.

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans