Problem with attachments on a form

Good afternoon to aal of you… i post that message because i need your lights :wink: So i’ve a file attachment problem. i’ve a form on the net; on that form there are files related to a webpage (these files are the attachements and are choosable or not (checkbox)). I need to get every record of the form (one to one); so that i can get info from every record. How could i get the form id? i need it to retrieve the records here is the way i work:

	Set FileDoc = Db.GetDocumentByUNID(Doc.AddDocRequestUNID(0))

	Set MyRT3 = FileDoc.GetFirstItem("DocuRequestRequestedFile")		

	

	If Not MyRT3 Is Nothing Then

		If MyRT3.ValueLength > 0 Then

			Call Body.AddNewLine(2)

			Call Body.AppendRTItem(MyRT3)

		End If

	End If		

But the problem is that ‘AddDocRequestUNID(0))’ is the id of the page and not of the form. Could anyone help me please? Thanks in advance.

Subject: Problem with attachments on a form

Does the form have a field with this value to get the id? @Text(@DocumentUniqueID)

If you need every document, why not just use simple getfirstdocument and then next?

Subject: RE: Problem with attachments on a form

That’s what i use… but the problem was to associate the files (in 1 DB) and the page (in 1 other) and to get the checked files associated with the right page… i’m sorry it’s quite confused but i’m beginning with notes and trying to get the best of what i know but fortunatly i found what i was looking for.

Solution :

get the page ID, attach the file to the page and check every doc created via the form and send the mail and the files… thanks you all for your fast answer…@+