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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Break line in the caption of the field or extend the caption length

(0) ShareShare
ReportReport
Posted on by 297

My text of caption is very long. I want the caption of field can have break line or it can show long text.

I tried many ways but not succeeded:

It still showed a part of the text.

pastedimage1678258587012v1.png

layout
{

addbefore(General)
{
group(Note)
{
Caption = 'Note';
// Visible = bAllowReleasePO;
ShowCaption = false;
grid(Grid1)
{

field(Notify; Rec.Notify)
{

ApplicationArea = all;
ToolTip = 'AAA - Only for showing message';
CaptionClass = Format(tNotification);
ColumnSpan = 3;
Editable = false;


}
}

}
}

}

actions
{

modify(Release)
{
Enabled = bAllowReleasePO;

}
modify(Reopen)
{
Enabled = bAllowReOpenPO;

}


}
trigger OnOpenPage()
var
lRec_UserSetup: Record "User Setup";
begin
// CurrPage.Editable(false);
tNotification := 'You can\ \n 11111111111111111111111111111111111111' + FORMAT(10) + FORMAT(13) + '11111111111111111111111 1111111111111111111 1111111111111111111 11111111111';
if lRec_UserSetup.get(UserId) then;
if lRec_UserSetup."AAA Allow Release PO" then begin
bAllowReleasePO := true;
tNotification := tNotification + ' Release';
end else begin
bAllowReleasePO := false;
tNotification := tNotification + ' NOT Release';
end;
if lRec_UserSetup."AAA Allow Reopen PO" then begin
bAllowReOpenPO := true;
tNotification := tNotification + '; can ReOpen';
end else begin
bAllowReOpenPO := false;
tNotification := tNotification + '; can NOT ReOpen';
end;

end;

var
bAllowReleasePO: Boolean;
bAllowReOpenPO: Boolean;
tNotification: Text;
ApprovalEntry: Record "Approval Entry";

ApproveTitle: Text[250];
Entryno: Integer;
Entrynostr: Text[250];

How to insert break line to caption or set the caption length to maximum of a group ?

I have the same question (0)
  • Suggested answer
    Bilal Haider Profile Picture
    412 on at

    Please add MultiLine Property to True in page field.

  • Hoang Ng Profile Picture
    297 on at

    Thanks Haider.

    I tried to add as your instruction but it does not work

    MultiLine = true;

    It seems working for inside Text Field not for it's caption.

  • Suggested answer
    Bilal Haider Profile Picture
    412 on at

    Hi Peter,

    I have replicated example that is similar to your need.

    pageextension 50100 MyExtension extends "Customer Card"
    {
    
        layout
        {
            addafter(General)
            {
                group(LabelTest)
                {
                    ShowCaption = false;
                    Label(LabelVal)
                    {
                        ApplicationArea = All;
                        MultiLine = true;
                        CaptionClass = Format(tNotification);
                    }
                    field("Global Dimension 1 Filter"; Rec."Global Dimension 1 Filter")
                    {
                        ApplicationArea = All;
                        Caption = '';
                    }
                }
    
            }
    
    
        }
        trigger OnOpenPage()
        begin
            tNotification := 'You can\ \n 11111111111111111111111111111111111111'   FORMAT(10)   FORMAT(13)   '11111111111111111111111 1111111111111111111 1111111111111111111 11111111111';
        end;
    
        var
            tNotification: Text;
    }

    And Result

    pastedimage1678269739368v1.png

  • Verified answer
    Hoang Ng Profile Picture
    297 on at

    Hi Haider,

    I misunderstood you.

    When I used Label instead of Field. It worked.

    Thank you so much.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans