The mail should be automatically deleted once the survey is submitted

hi

I am developing a client application for Surveys. The survey goes as a mail to the user.Once the user submits the survey the mail or the document should be deleted from the Inbox.

Please help me how to incorporate this feature in my application.

Regards,

sai

Subject: Instead of mailing the survey…

Consider creating a normal database containing the Survey form. Then send a message containing a doclink to the survey database with instructions to click a ‘New Survey’ action button to create a survey. Restrict users’ access to the database so that they cannot read one anothers surveys. Not only is this more efficient, you can allow users to edit their surveys and prevent them from creating more than one survey each.

Subject: RE: Instead of mailing the survey…

I would suggest reading up on mailin databases- fill it out in DB A, and when it gets submitted it is e-mailed to DB B - where the user has only depositor access.

Subject: RE: Instead of mailing the survey…

thanks lawrence,

It is a small notes client database. My reqmnt is that the mail must be deleted from the user’s mail inbox so that he cannot submit again.

Pls help…

Subject: RE: Instead of mailing the survey…

There’s no need to delete it to stop the user from submitting it again.

In your submit button, update a flag field in the mail (I assume this is a stored form), this then hides the submit button.

I’ve done this on a polling db, on submit it even unhides a table ith the results of the poll, just computed fields with dblookups to the view storing the answers.

Of course if you want to delete the document then you can always use @command([Clear]) I guess, but then depending on the user’s mail settings they may be able to retrieve the mail from the trash.