Hi,
I have created a questionnaire form with 7 questions on it. I have three fields that automatically populate Name, Site and department. We need our user population to complete this form. I have used document links in the past to email a document that already exists. But how do I email this form to users so that they can complete the 7 questions and submit form ??
Many Thanks
Stefan
Subject: send a link to existing ‘starter document’ with button that Composes a new document
I have used the following approach for surveys and it works quite well.
Create a starter survey document that has a button on the form that does a Compose(whatever form you want them to compose). Save it in your survey database.
Send the people a link to this starter document. When they click on the link, it opens the document in the survey database. Clicking on the “Compose” button (or start survey or whatever label you like) will create a new document and you can pull in whatever user info you want.
When they save their completed survey, it will already be in your database so you can see the results. You don’t have to wait for the response to route through the mail system.
Subject: did it with Formula language
Our solution just uses Formula language for the sending and composing.
Subject: Emailing link to a form
You need to “Attach fhe form” to the document. If you’re using Lotus Script to send the e-mail it’s one of the parameters of the .Send Method.
Subject: RE: Emailing link to a form
Thanks for your reply - How can I do this without using Lotus Scipt as I don’t know lotus script ??
Subject: RE: Emailing link to a form
You don’t. (Well, you could use Java instead, but that’s every bit as complicated and no more productive.) Julie’s answer is a good one. You could also create a button in an email message that uses @Command([Compose]), but that’s only easy in Formula Language if you do it manually.
Sending documents around using stored forms is often more trouble than it’s worth. If I were to do something like this in LotusScript, I’d be more inclined to send a doclink to the Form. (Remember that Forms and Pages are also documents, and you can create doclinks to them.) For the benefit of anyone who may want to try something like this, here is the general method (assumes you already know how to create a mailing in LotusScript and skips much code):
Dim form As NotesForm
Dim formDoc As NotesDocument
Dim nc As NotesNoteCollection
Set nc = db.CreateNoteCollection(False)
Call nc.BuildCollection
Set form = db.GetForm(“FormNameHere”)
Call nc.Add(form)
Set formDoc = db.GetDocumentByID(nc.GetFirstNoteID)
.
.
.
Call mailBody.AppendDoclink(formDoc, “Create survey response”)