Document Deletion confirmation in web browser

Hello,I made a button in which i put the following js code:

if ( confirm(‘Voulez vous supprimer ce document?’) ) window.location.search = ‘?DeleteDocument’;

The problem is that when the user click yes, the document is deleted but it opens a white page with “deleted” written on it!

I would like to open a view or cutomize this page…The answer is un fortunately not in the field $$return :frowning:

Subject: Document Deletion confirmation in web browser

You need to make a form called: $$ReturnDocumentDeleted This form will be called then when you delete something. In that form you will want to put a $$HTMLHead CFD text field. This text field will serve as the place to put code in order to redirect to a different page or show a link or whatever you want to show the user. I’m sure if you search notes/domino help and/or this forum you’ll find more detail about the $$ReturnDocumentDeleted and $$HTMLHead

Hope that helps,

Julie

Subject: RE: Document Deletion confirmation in web browser

Sure it helps…Thanks a lot that’s exactely what i was looking for :wink: