Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Setup Master Templates how to set mandatory fields works?

Posted on by Microsoft Employee

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

  • Suggested answer
    Ashwini Tripathi Profile Picture
    Ashwini Tripathi 4,624 on at
    RE: Setup Master Templates how to set mandatory fields works?

    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.

  • Suggested answer
    Indikauk Profile Picture
    Indikauk 1,759 on at
    RE: Setup Master Templates how to set mandatory fields works?

    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
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Setup Master Templates how to set mandatory fields works?

    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
    RE: Setup Master Templates how to set mandatory fields works?

    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.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans