I would like to reduce the allowed string length of a fewof text fields in the Business Central UI. I don't want to change the length in the table, just the page object. I looked on the field object in the page and it has a MaxValue for numeric fields but no MaxLength.
Is this possiable without creating new fields on the table?
You can check in the OnValidate trigger of the field or OnAfterModify trigger to check the StrLen of the input value and show error if is more than the length that you need.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156