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  

  • Verified answer
    Mohana Yadav Profile Picture
    61,250 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 774 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 569 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 296 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans