Two return values in $$Return field

Hi,

We have a Web Inquiry page which is created using some web tool. When user submits the inquiry in this page a document is created in the Notes Database. The user is then routed to a Thank You page. This Thank you page is presented based on the value in the $$Return Field of the document.

Sometimes due to unavoidable circumstances the docuement does not get created in the Notes Database but the user is still shown the Thank You page.

So the requirement is , if the document is not saved in the notesdatabase the user should be routed some other page which displays an appropiate message.

Any Clues how this can be done?

Subject: two return values in $$Return field

well, you can use @if function in $$Return field where first you can check the existance of that document by using @DBLookup and if it doesn’t find, return the other page otherwise show the thanks page.

HTH