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 CRM (Archived)

Can you change the 'you must provide a value for...' to show the display name of the field?

(0) ShareShare
ReportReport
Posted on by

Hi

Is it possible to change the 'you must provide a value for...' message to show the display name of the field that needs completing rather than the schema name? As in some cases the display name has been updated so it doesn't 100% replicate what the schema name is so those who are as familiar with Dynamics in our company are getting a bit confused?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    This is OOB message you can not change this  message format.

    Alternatively you can use custom JavaScript control notification in that case.

    Have a look below article -

    neilparkhurst.com/.../javascript-notifications

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Are you referring to the default message showing schema name instead of display name? Is this field on BPF? If yes, this is a known issue with the current version which will be fixed in upcoming version. once fixed, it will show the display name instead of schema name.

    This happens if you have a field in BPF but not in form i.e. say you have a required field customer added to the BPF stage but you haven't added this field on the form then you get this schema name in the error message. The workaround is to put field on the form as well.

    Below is the response from Microsoft-

    ======

    PROBLEM/ASK :

    RE: [REG:118110819318980] ] Incorrect message for mandatory field  

    Cause: This is a BPF specific issue where the code doesn't get label properly. Label is null based on current logic, so schema name is displayed.

    Resolution :

    Not resolved – would be addressed in Future releases.

    ==============

    Hope this helps.

  • Verified answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Jess,

    I'm sorry that this is an OOB feature and we could not change this message.

    But we are able to use JS to write a more detailed message instead.

    Please refer to the following code and trigger it at "OnSave" of the form.

    It is necessary to select "Pass execution context as first parameter" because we need to pass execution context to prevent saving the form.

    function checkField(executionContext){
        var fieldValue=Xrm.Page.data.entity.attributes.get("fieldname").getValue(); //get value from field
        if(fieldValue==""||fieldValue==null){
            Xrm.Page.ui.setFormNotification("fieldname is not completed", "ERROR"); 
            executionContext.getEventArgs().preventDefault();//prevent updating the record
        }
    }


    Hope it helps.

    Best Regards

    Leo

  • Community Member Profile Picture
    on at

    Hi

    The field isn't included in BPF it is included in the header section of the form. Assuming this is something that will also be resolved on a future release? Or is this different as it is just in the header not BPF.

    Thanks!

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans