Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to prevent manual data input in drop-down menu fields.

(0) ShareShare
ReportReport
Posted on by 18

Hello BC community!

On the customer card the field "Post Code" is related to the underlying "Post Codes" master table and users can pick an option from that master.

But the field also accepts any manual text input from the user.

Is there a way (through AL code or UI settings) to limit data input in this field (or any other master table related field) to the options from the underlying master?

Any input would be highly appreciated!

Thanks in advance, 

Jakob

  • Jakob Gutzmann Profile Picture
    Jakob Gutzmann 18 on at
    RE: How to prevent manual data input in drop-down menu fields.

    Thank you very much for your help Amit and Josh!

  • Verified answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: How to prevent manual data input in drop-down menu fields.

    Hi,

    This is base feature which disable table data validation in case of Post code and city field.

    You can create Custom Post Code field and fill the value in original filed at the time of entering the value in Custom field. Your requirement achieved in this way.

    Regards

    Amit Sharma

    www.erpconsultors.com

    linkedin.com/in/amit-sharma-94542440/

  • Jakob Gutzmann Profile Picture
    Jakob Gutzmann 18 on at
    RE: How to prevent manual data input in drop-down menu fields.

    Thank you for the quick reply Josh!

    I checked in the Base application and the ValidateTableRelation property is indeed set to false. Unfortunately, when I try to modify the field I get an error telling me that this property can not be modified. Maybe it is protected for some reason?

    Thanks!

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: How to prevent manual data input in drop-down menu fields.

    Altering this property for that field is a starting point: docs.microsoft.com/.../devenv-validatetablerelation-property

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans