Create Document with Lotusscript

Forgive me, new at this.

What I need to do is send out an email with two buttons in it to survey users. The buttons will both have Lotusscript behind them to accomplish a certain task.

When the user clicks the “Yes” button I need it to create a document in a database with the Answer field set to yes and a similar situation on the “No” button.

Can anyone help? I am a bit lost.

Subject: RE: Create Document with Lotusscript

dim surveydb as new notesdatabase(“servername”, “filepath”)dim doc as new notesdocument(db)

doc.Form = “something”

doc.Answer = “Yes” ’ or No, whatever

doc.Save true, false, true

msgbox “Thank you for participating in our survey!”

Subject: Create Document with Lotusscript

Mike,

Try something like this;

Dim session As New NotesSession

Dim db As NotesDatabase

Dim doc As NotesDocument

Set db = session.CurrentDatabase

Set doc = db.CreateDocument

doc.Answer = “Yes”

doc.Form = “yourformname”

Call doc.Save( True, True )

Otherwise, try the .createdocument method in designer help

Cheers

Vic

Subject: RE: Create Document with Lotusscript

Hi all,I have a form in the web with an action hotspot which runs a script agend. Does the code above also run in such an agent? I was not successful with it…