Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Add in the C# SDK the required parameter for custom fields (Workaround from a customer documented here) #53

Closed
latoyazamill opened this issue Aug 8, 2018 · 0 comments
Assignees
Milestone

Comments

@latoyazamill
Copy link

Add in the C# SDK the required parameter for custom fields (Workaround from a customer documented here)

For signature requests that send the request using a template:
v3/signature_request/send_with_template is one example

The API Supports making an editable custom field with a required requirement

This issue is to request the ability to add the required parameter to the SDK. This is only required if there is an editor.

Potential workaround provided by a customer:

List customFields = new List();
foreach (var entry in signatureRequest.CustomFields)
{
CustomFieldParam fld = new CustomFieldParam();
fld.name = entry.Name;
fld.value = entry.Value;
fld.editor = entry.Editor;
fld.required = entry.Required.ToString().ToLower();
customFields.Add(fld);
}
request.AddParameter("custom_fields",
JsonConvert.SerializeObject(customFields.ToArray()));

Perhaps there is a more elegant solution, but this got the customer to where they needed
to be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants