...
How do I receive the document set (including attachments) for the Form when submitted?
Code Block |
---|
FormEntry formEntry = ...; // created with the _formActionDocs param set to true
IList<MultipartContentElement> responseData = formEntry.SubmitInstance();
foreach (MultipartContentElement part in responseData)
{
string dispositionType = part.ContentDispositionType;
string name = part.Name;
string contentType = part.ContentType;
string contentTransferEncoding = part.ContentTransferEncoding;
string data = part.DataPayload;
} |
Note |
---|
|
How do I pre-populate values when creating an instance?
When creating a form instance, you can supply data to pre-populate fields. There are a couple of ways to do this. The first way is to supply a name value collection, which holds control names and values. The second way is to supply an XML document, with control names and values. Suppose your form has two text fields, named A and B respectively. Also, suppose you wish to prefill these 2 controls with values, as shown:
...