Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Web programming


I have designed a form for the web browser. I am using R5. I have 2 situations to overcome:-

1. I want to submit the and the window should close after saving the document.

2. On submitting the form the document should be saves and a new URL should be opened instead of showind "form processed".

can anybody help.
1 Solution
re Item 1:  Do you want to close the current instance of the browser AND open the separate URL outlined in part 2 of your question?

re Item 2:  Add a computed text field called $$Return which holds the URL that should be opened.  Look at [Customizing "Form processed" confirmation for the Web] in the Domino Designer help database for a full usage description and examples.
amit_duttaAuthor Commented:
hi DButler,

in Item 1: I want the instance of the window to be closed, after saving the document. I want do this because, I am openning a new pop-up window and showing a form in it. On clicking the submit button of that form, it should save the document and close window instance.
amit_duttaAuthor Commented:
I have used java script in the onclick event of the submit button as follows:-


This results in the closing of the window, but the document is not saved.

If i remove window.close(), then the document is saved. But i want to close it also.

Any answers???
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Dunno if it will work but I'd try,
adding a web-query-save agent.....
leave your page submit as:
then in the agent do a:

print "<script> window.close() </script>"
or something like that....

Does this help?
amit_duttaAuthor Commented:
Hi sam

web query save agent is always triggers before saving the document. I want my document to be saved and then close the window.
Hi Amit

In the $$Return use this function, it will close the current doc and open new window with new url

Here is the sample
"[" +

'<script language="javascript">' +

"close();" +

'"//");' +

"</Script>" +


PS: As a security feature, the browser will prompt the user to close the window.

Good Luck
Hi Amit

If you wan't to close the form and open a new url, you can use this too. This avoids opening a new window and excludes the prompt messages too. Hope this is handy

Use this in $$Return field:

"<script language=\"javascript\">" +

"window.location.href= \"//\";" +


Good Luck
amit_duttaAuthor Commented:
Thanks Hemantha, ur suggestions worked with some modifications.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now