Skip to main content

Notifications

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

  • Suggested answer
    Ashwini Tripathi Profile Picture
    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
    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
    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
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at
    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans