Aravind Aravind
Aravind Aravind

Reputation: 189

How to add Name field in Docusing envelope?

Currently i can create envelope with signers dynamically, now i want to add Name field above the signer, i using below code to set Auto search Text.

         ' Document
 Dim doc1 As Document = New Document With {
        .DocumentBase64 = doc1DocxBytes,
        .Name = ext1(0),
        .FileExtension = ext1(1),
        .DocumentId = "1"
    }
    
    env.Documents = New List(Of Document) From {
           doc1
    }
    
    'Signer1
    Dim signer1 As Signer = New Signer With {
        .Email = signerEmail,
        .Name = signerName,
        .RecipientId = "1",
        .RoutingOrder = "1"
    }
    
     Dim signHere212 As SignHere = New SignHere With {
        .AnchorString = "For and on behalf of the vendor",
        .AnchorUnits = "pixels",
        .AnchorYOffset = "70",
        .AnchorXOffset = "20"
    }
    
      Dim fullName212 As FullName = New FullName With {
    .AnchorString = "For and on behalf of the vendor",
    .AnchorUnits = "pixels",
    .AnchorYOffset = "100",
    .AnchorXOffset = "20"
}


     Dim signer1Tabs As Tabs = New Tabs With {
        .SignHereTabs = New List(Of SignHere) From {
           signHere212
          },
       .FullNameTabs = New List(Of FullName) From {
        fullName212
   }
   }
   
   signer1.Tabs = signer1Tabs
   
   
   Dim recipients As Recipients = New Recipients With {
        .Signers = New List(Of Signer) From {
            signer1
            }
    }
    
     env.Recipients = recipients
        env.Status = "sent"
        
             Dim envelopeEvents = New List(Of EnvelopeEvent)()
        envelopeEvents.Add(New EnvelopeEvent With {
        .EnvelopeEventStatusCode = "completed",
        .IncludeDocuments = "true"
    })
        eventNotification.EnvelopeEvents = envelope



       

From above code i placed sign on the top of "For and on behalf of the vendor", now i want Name field to add Name when signer sign the document.Please provide piece of code.

Upvotes: 0

Views: 77

Answers (1)

Inbar Gazit
Inbar Gazit

Reputation: 14005

    Dim fullName212 As FullName = New FullName With {
            .AnchorString = "For and on behalf of the vendor",
            .AnchorUnits = "pixels",
            .AnchorYOffset = "70",
            .AnchorXOffset = "20"
        }

 Dim signer1Tabs As Tabs = New Tabs With {
        .SignHereTabs = New List(Of SignHere) From {
            signHere1
                  },

        .FullNameTabs = New List(Of FullName) From {
            fullName212
    }
  signer1.Tabs = signer1Tabs

     Dim recipients As Recipients = New Recipients With {
        .Signers = New List(Of Signer) From {
            signer1
        }
    }

Upvotes: 1

Related Questions