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

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
    61,184 Super User 2026 Season 1 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

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 2,055 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,014 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans