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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Adjust the size of a field displayed on a page - Work description

(0) ShareShare
ReportReport
Posted on by

Is there any way within AL or otherwise to adjust the size of a display box, for example, on the Purchase Invoice screen, I want to adjust the size of the Work Description field on the Sales Invoices screen?

pastedimage1680035856619v2.png

I have the same question (0)
  • Bilal Haider Profile Picture
    442 on at

    Hi,

    Yes there is limited options for adjustments within AL (more options using Java script). Can you elaborate what adjustment exactly you need for Work description.

  • kjjson Profile Picture
    on at

    Thank you, we are trying to increase the size of the field. Right now it shows 3 lines, we would like to change it to 6 lines.

  • Suggested answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at

    Unfortunately as far as I know, this cannot be adjusted by default.

    In addition to the Java script that Bilal mentioned, you can also try WebPageViewer Add-in.
    More details: https://yzhums.com/16061/

    pastedimage1680050951793v1.png

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at

    Hi, I just tested it briefly. If you create a Factbox to display Work Description, it can display 5 lines. . . . .

    pastedimage1680075610297v1.png

    Update: As long as Editable = false and ShowCaption = false, five lines can be displayed.

    pastedimage1680076960504v1.png

    My test code:

    pageextension 50111 ZYSalesOrderExt extends "Sales Order"
    {
        layout
        {
            addafter(Status)
            {
                field("Work Description 2"; WorkDescription)
                {
                    Editable = false;
                    ShowCaption = false;
                    ApplicationArea = All;
                    MultiLine = true;
                }
            }
            addfirst(factboxes)
            {
                part(SalesOrderWorkdescription; "Sales Order Work description")
                {
                    ApplicationArea = All;
                    SubPageLink = "Document Type" = FIELD("Document Type"), "No." = field("No.");
                }
            }
        }
    
        var
            WorkDescription: Text;
    
        trigger OnAfterGetRecord()
        begin
            WorkDescription := Rec.GetWorkDescription();
        end;
    }
    
    page 50111 "Sales Order Work description"
    {
        Caption = 'Sales Order Work description';
        PageType = CardPart;
        SourceTable = "Sales Header";
        InsertAllowed = false;
        Editable = false;
        DeleteAllowed = false;
    
        layout
        {
            area(Content)
            {
                field("Work Description"; WorkDescription)
                {
                    Caption = 'Work Description';
                    ShowCaption = false;
                    ApplicationArea = All;
                    MultiLine = true;
                }
            }
        }
    
        var
            WorkDescription: Text;
    
        trigger OnAfterGetRecord()
        begin
            WorkDescription := Rec.GetWorkDescription();
        end;
    }

    Hope this helps as well.

    Thanks.

    ZHU

  • Suggested answer
    Greg Enns Profile Picture
    1,122 on at

    Looks like Zhu has a good solution. One thing I would add... I have found that by moving/grouping other fields in the same area, you can usually cause a blob field to show more lines.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans