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...
Answered

In what area is the "Ok" button located to modify it?

(0) ShareShare
ReportReport
Posted on by 450

So i want to modify the Ok button of a page but for that i'm assuming I need the area in which the button is located.

Could anyone tell me which one it is or if i'm wrong what i need instead?

Thanks in advance.

  • Verified answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    I am assuming, on clicking the OK button on the page you want to perform some business logic.

    If this is the case, then you can use the OnQueryClosePage trigger of that page. Here you will have CloseAction, which tells you what is the action performed to close the page.

    If the page has opened in lookup mode, then you have you use Actions like

    IF PageVariable.RUNMODAL = ACTION::OK THEN BEGIN

        // Business Logic

    END;

    Regards

    Avinash B

  • InsertX Profile Picture
    450 on at

    Fixed it before the reply but i did make use of the runmodal function with LookupOk.

    Thanks anyway

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 768 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 541 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 324 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans