Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

In Business Central, is there way to change/add Mandatory fields

Posted on by 115

Client wants to make Your Ref: on the Sales Quote a mandatory field, is there a way to mark this as a Mandatory field?  In NAV you can modify the page and set ShowMandatory to true an it would show the asterisk but this is a customisation and doesn't work in BC.  Is there a way to use Flows to check that fields have been filled in (I have never used them)?

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: In Business Central, is there way to change/add Mandatory fields

    ShowMandatory property is ACTUALLY not supported and the official reason is that generally the AL Team don't expose properties that would lead to conflicting/undefined behavior in case 2 or more extensions modify the same property.

    I agree that it could be supported and it’s on evaluation. For the moment, you can use TESTFIELD or a different trick.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: In Business Central, is there way to change/add Mandatory fields

    How about using TestField ?

  • Hannes Holst Profile Picture
    Hannes Holst 5,767 on at
    RE: In Business Central, is there way to change/add Mandatory fields

    Hi,

    That's the website I wasn't able to find :-)

    The reason why the ShowMandatory-property is not available through a PageExtension would be interesting.

    Yes - I would too, either duplicate the page or utilize the Style-property.

  • GreatScott001 Profile Picture
    GreatScott001 115 on at
    RE: In Business Central, is there way to change/add Mandatory fields

    So I would have to duplicate the functionality of the entire Sales Quote page to change a field to ShowMandatory.

  • GreatScott001 Profile Picture
    GreatScott001 115 on at
    RE: In Business Central, is there way to change/add Mandatory fields

    Actually no.  ShowMandatory cannot be set in a PageExtension.  See https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-page-property-overview

  • Hannes Holst Profile Picture
    Hannes Holst 5,767 on at
    RE: In Business Central, is there way to change/add Mandatory fields

    Hi,

    You could create a Page Extensions which delivers this particular change.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans