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

Setup Master Templates how to set mandatory fields works?

(0) ShareShare
ReportReport
Posted on by

Hi,

I created a template for item in: Setup master templates in Nav 2015.

I set the fields "Description 2" of item to be the mandatory field.

However, when I create a new item -> apply the template I've created, the description 2 is not appear as mandatory, I still can save the item with description 2 as blank.

Do you have any idea how to make it work ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    Please try this link -> www.archerpoint.com/.../how-use-templates-create-customers-and-other-records-nav

    Or if you are trying to get the Red Asterix, then it is a customization. Open the dev environment, select the page, go to design and choose the field and in properties, make the ShowMandatory as TRUE.

    Hope it helps.

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello Hungto,

    Setup master templates is mostly used for populating the default value.

    If your description 2 is not appear in page, then you have to add "Descripton 2"field in page item card.

    if you need validate then you have to write custom code.

  • Suggested answer
    Indikauk Profile Picture
    1,759 on at

    Hi, Hungto

    Master Templates Mandatory Field is to Make it Mandatory That Fields Value on The Master Template only It Will Not Make your Master Card for That Field Mandatory Check. if you want To Make Mandatory Display you can Change the Fields Property in the Page "Show Mandatory" to Yes This will show the Red Star on that field but system will not do any validation while closing the Master Card if you need that then you need to Customization.

    Thanks

    Indika

  • Suggested answer
    Ashwini Tripathi Profile Picture
    4,624 on at

    Template are for defaulting value upon application of templates. If you require it to be checked then you should write some code in order to achieve the same. Like on triggers when you move to next record or close the Page check should be performed. Make a function to check your all mandatory fields and call this function on above mentioned triggers.

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans