web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Auto Format Expression of a standard field

(0) ShareShare
ReportReport
Posted on by 215

Hello,

I have seen that the Property AutoFormatExpression can no longer be customized in Business Central. It's a shame, because it's property that concerns only the way the data is displayed. And it was very useful. We used it a lot in NAV 2018.

Do you know any way, any woraround, to modify the auto format expression property of a table field ?

Thank you

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    The way to do this I've found is to do PageExtensions. Sadly you also cannot set this property using a 'modify' on the existing page control, however you can hide an existing control and replace it with a new one where you can set AutoFormatType and AutoFormatExpression.

  • Magicrevette Profile Picture
    215 on at

    It's the first time I read I can "hide an existing control". What does that mean exactly ? visible = false ?

  • Community Member Profile Picture
    on at

    Yes.

    You may also consider setting Enabled to false. Setting ApplicationArea to something unused may hide the control completely, preventing users from adding it back to a List as a column.

  • Magicrevette Profile Picture
    215 on at

    Ok thank you. But the problem I see here is if the field with the autoformatexpression in my standard object is used by another field or procedure in the standard object, I can't modify the code in this standard object to call my new field instead of the old one.

  • Community Member Profile Picture
    on at

    Welcome to AL : D

    I think maybe there is an event trigger somewhere regarding field formatting that you could intercept.

    Try playing with Codeunit 45 AutoFormatManagement, and find out where the system calls those functions. I seem to recall an event somewhere that had table/field id parameters.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,690 Super User 2026 Season 1

#2
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,091 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans