Notifications
Announcements
No record found.
Is there a way to make field validation use custom logic? For example, instead of something simple like requiring any numeric value, it might check the value in another table, check for a specific value, etc.
You can use event subscriber by subscribing to the field you want to validate.
sample below will do validation on Location Code field at Sales Line table
I mean more on a custom page field I have, For example:
Is it possible to use logic here, test the inputted value, and return true/false? Returning false would display the red X with the reason why it's not valid.
For that , it can only use an expression for the ShowMandatory property, the property cannot validate a C/AL function. So in this case you cannot put logic to check value from other table.
detail :
docs.microsoft.com/.../showmandatory-property
alternatively is use the method i mentioned and pop up Error Message Box .
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.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.