Web Form Submission

I created a web page using Dreamweaver, I styled it and it looks exactly how I want it. I tested the javascript locally and everything works.

I then pasted the HTML from this local file into a new notes form. I only copy and pasted everything between the tags. Set the HTML as passThru.

added the .js and .css in the header section of the form.

I then created a agent “(processWebForm)”:

Sub Initialize

Dim sess As New notessession

Dim doc As NotesDocument

Set doc = sess.DocumentContext

Print "<h1>Thank You, " & doc.docRequestor(0) & "</h1><br>The current time is : " & Now()

End Sub

I tested the new Notes form using Firefox and it displayed how I want it from the Notes server, the javascript in the submit button works too (JS just does field validation for nulls). The webquerysave agent ran successfully after submission, returned the above HTML response in my webquerysave agent.

The problem is doc.docRequestor(0)is null, I checked the document in the database and it only has the fields Form and updatedBy which =Anonymous.

How do I get the rest of the HTML fields to be saved in the document? I wish not to create all the fields all over again in the Notes form.

what can I do in the webquerysave to access html fields after submission?

Thanks in Advance!

Subject: I figured it out

To make this work I had to teminate the Lotus default form with a then adjust my javaScript to use document.forms[1] instead of document.forms[0].

Notes Form needs this

The computed value has this in it:

“http://” +@Name([CN];@ServerName) + “.domain.com/” + @WebDbName + “/processWebForm?OpenAgent”

I could access all html fields using the session.Request_Content(0) member.

Let me know if you have any questions, I’ll try to respond, not sure if the above explanation is clear.

  • Steve