$$Return Code?

Hello - I have a form that is used on the web. When a user clicks the SUBMIT button, I want 3 things to happen:

#1-JavaScript Validation & Save - in the SUBMIT button.

#2-Send an email - in the WebQuerySave as an agent.

#3-Display a custom confirmation page WITH one field that is inherited from the original form.

#1 and #2 are working just fine. #3 is causing the problem. I can display the custom confirmation page by putting this in the $$Return field:

“[http://hub.savechildren.org/GMS2006.nsf/ReDirect?OpenForm]”

However, the inheritance is not working. I basically want the equivalent code for this:

@Command([Compose];“ReDirect”)

That can be used in the $$Return field.

Does anybody have any ideas? Thanks in advance for your time!

Subject: $$Return Code?

If I understand correctly, you want to take the user to the “Redirect Form?” and at least one field pre-filled in from the value in the previous form?

Unfortunately, There will be no inheretance from the one document to the next through $$Return.

Depending on the nature and sensitivity of the information being inherited, You could pass the “Inherited Field” through the URL, and parse it out using the CGI variable: HTTP_Referer

For example, to pass the Username to the next form…

Keep your URL,

Plus, add Identifiers, in this case, "PassUser "and “FavouriteColour”

Then concatenate with strings so you come up with a target URL like:

http://hub.savechildren.org/GMS2006.nsf/ReDirect?OpenForm&PassUser=Isobella%20Monroe&FavouriteColour=Red

Then you can use @ formulas to strip out the values you need inherited.

Beware: anything you put in the URL will be passed in clear text, so don’t send passwords or other sensitive info. (Not even sure SSL will protect you from all listeners.)

If the “Redirect” is a simple page, like a “Thank You”, just compute the HTML you want displayed, - I use a HTTP:Refresh Meta tag to redirect the user after a couple seconds of looking at my thankyou screen

Jeff

Subject: $$Return Code?

Don’t bother with the $$Return field. Use your QuerySave agent to generate html or launch a form. All Print statements in your web query save agent get sent directly to the browser. This allows you to do all kinds of things such as launching a custom thank you window.

Subject: RE: $$Return Code?

Thank you everyone for your suggestions.

I actually did find a way to make it work via Domino language:

Here’s the code for $$Return:

“[http://hub.savechildren.org/gms2006.nsf/ReDirect?OpenForm&ParentUNID=“+UNID+”]”

And the UNID field is a calculated field:

@Text(@DocumentUniqueID)

Cheers!