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

How to keep the page open if the error occurred

(0) ShareShare
ReportReport
Posted on by 39

I created a document page where in the lines there is field (percentage) I don`t want the user to close the page if the sum of the percentage field in the lines is less than 100% 

I tried validating that onClosePage but the page closes after giving the error 

can anyone tell me how to do this, it would be appreciated  

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    60,993 Super User 2025 Season 2 on at

    Did you try OnQueryClosePage trigger?

    But users can still navigate the previous/next document and close the page.

  • Muaaz Deyab Profile Picture
    39 on at

    Thank you it Worked. it is only one document (Setup) so the user cannot go to previous/next document, but can he navigate to other pages? Can I prevent that

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,143

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans