Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

How to keep the page open if the error occurred

(0) ShareShare
ReportReport
Posted on by 29

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  

  • Muaaz Deyab Profile Picture
    Muaaz Deyab 29 on at
    RE: How to keep the page open if the error occurred

    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

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,054 Super User 2024 Season 2 on at
    RE: How to keep the page open if the error occurred

    Did you try OnQueryClosePage trigger?

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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans