Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Required message

Posted on by 150

Hello,

Kindly note that i have a required custom field in the project entity. however, when the user does not fill this field the required notification message appears to small at the bottom right side of the page and it's not clear for them, but when the user does not fill a system required field the required message appears directly on the proper  field in a very clear way.

So can you please help me what i have to do in order to be able to display the required message as usual

Kindly find a screenshot attached to this message

6747.message.jpg

Thank you

*This post is locked for comments

  • Priyesh Profile Picture
    Priyesh 7,392 User Group Leader on at
    RE: Required message

    Hi All,

    I know this post came a long way and has resolved answer too - I had experienced the similar stuff before - d365demystified.com/.../what-happens-when-you-force-fields-on-bpf-to-be-required-programatically-or-using-business-rule

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Required message

    Please check below reference  -

    carldesouza.com/dynamics-crm-creating-debugging-javascript-code

  • Adel Orabi Profile Picture
    Adel Orabi 150 on at
    RE: Required message

    how can i check this value?

    how can i debug

    Thank you for your help

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Required message

    what is the value your are getting of the field  when you debugging -

    Xrm.Page.getAttribute("header_new_requiredtest").getValue();

  • Adel Orabi Profile Picture
    Adel Orabi 150 on at
    RE: Required message

    it seems like the crm doesn't enter in the function when the field is empty!! i tried  only to alert a test message on save event but didn't appear!!

    when the field isn't empty the CRM run the code and enter the else statement

    Any idea?

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Required message

    In addition you can also check whether the code is entering in the if statement .

    if (isdocumentsubmitted == null && isdocumentsubmitted == "")

    {

    // Should enter in case of null or empty

    }

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Required message

    Please try to debug your code and let me know where you are getting error  , share some screenshot or error details .

  • Adel Orabi Profile Picture
    Adel Orabi 150 on at
    RE: Required message

    still not working , i don't know what is the issue

    it might that the  CRM engine checks the required field before executes the onsave event?

    the required message still appears at the right bottom of the page

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Required message

    yes you should register the function in onsave event.

  • Adel Orabi Profile Picture
    Adel Orabi 150 on at
    RE: Required message

    still not working

    please note that i'm testing this code on the online version before i published on the production ENV

    should i run this code on the save event?

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