Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Adding a free text or label to notify some things in a form

Posted on by 295

I want to show a note to user in Purchase Order as below:

pastedimage1678175001272v1.png

I created new field "Notify", and add new group to Purchase Header

 addbefore(General)
        {
            group(Note)
            {
                Caption = 'Note';
                field(Notify; Rec.Notify)
                {

                    ApplicationArea = all;
                    ToolTip = 'Only for showing message';
                    CaptionClass = Format(tNotification);
                    Editable =false;
                }

            }
        }
trigger OnOpenPage()
    var
        lRec_UserSetup: Record "User Setup";
    begin
        // CurrPage.Editable(false);
        tNotification := 'You can';
        if lRec_UserSetup.get(UserId) then;
        if lRec_UserSetup."Allow Release PO" then begin
            bAllowReleasePO := true;
            tNotification := tNotification + ' Release';
        end else begin
            bAllowReleasePO := false;
            tNotification := tNotification + ' NOT Release';
        end;
        if lRec_UserSetup."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;
It showed OK but I do not know whether there is simple to add free text or label before "General" group or not. Could you share with me ?
I am not preferred to use Notification.
 
  • Hoang Ng Profile Picture
    Hoang Ng 295 on at
    RE: Adding a free text or label to notify some things in a form

    Thanks Daniele,

    I could not see Customize button as your instruction

    pastedimage1678177022833v1.png

    I see only Personalize.

    My version is 2021 W1 On Premise.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Adding a free text or label to notify some things in a form

    hi

    you can add a free text or label to notify certain things in a form. Here's how:

    Open the page or form where you want to add the free text or label.

    Click on the Customize button in the top right corner of the page.

    Select the field or area where you want to add the free text or label.

    In the Properties pane on the right side of the page, scroll down to the Labels section.

    Click on the New button to add a new label.

    Enter the text you want to display in the label.

    Choose the appropriate language for the label if your system is set up to support multiple languages.

    Click OK to save the label.

    You can then drag and drop the label onto the appropriate field or area on the page.

    Once you've added the label, it will display on the page whenever the page is opened. This can be useful for providing additional information or context for a field or section of the form.

    DAniele

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans