Disabling links after dcument has been submitted

I m sending the link of a new form to a mail group on web.If the user has already submitted the form then the link should be disabled.Any ideas how to do it.

Subject: Disabling links after dcument has been submitted

There’s several options.My first would be to make the form behave differently if it has been submitted.

Compute subforms to accomplish this simply.

or

Upon submit, write the data to a new document of another form type. Then on open check for the already-entered data and deal with the situation accordingly.

Subject: RE: Disabling links after dcument has been submitted

Thanks a Lot Both,But my problem is still not solved…

What I was trying was ---->

Checking “All Documents” View where the name of all submitted persons is stored…then i m trying to find if that person has submitted , if yes then an error msg is displayed on screen else the document is saved…

This is the code…

Dim session As New NotesSession

Dim db As NotesDatabase

Dim doc,vdoc As NotesDocument

Dim date1,date2 As NotesDateTime

Dim view As NotesView



Set db=session.CurrentDatabase

Set doc=session.DocumentContext

Set view=db.GetView("ALL DOCUMENTS")

Set vdoc=view.GetFirstDocument



While Not vdoc Is Nothing

	vdocnm=vdoc.empname(0)

	If doc.empname(0)=vdocnm Then

		Call doc.replaceitemvalue("errmsg","Error")

		Exit Sub

	Else

Call doc.Save(True,True)

	End If

	Set vdoc=view.GetNextDocument(vdoc)

Wend

But the document is not being saved even if that particular user has never submitted the document…

Any Ideas???

Thanks

Subject: Disabling links after dcument has been submitted

No ideas about disabling doclink other then delete the document or change doc id. But what can do is, In forms queryopen event check if user has already submitted the form or not. If yes close the document else………

:slight_smile: