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

Signature Request does not support Custom Fields #111

Open
RPM1984 opened this issue Nov 29, 2021 · 2 comments
Open

Signature Request does not support Custom Fields #111

RPM1984 opened this issue Nov 29, 2021 · 2 comments
Labels
legacy Related to legacy, non-OpenAPI SDK

Comments

@RPM1984
Copy link

RPM1984 commented Nov 29, 2021

The PostSignatureRequest method does not appear to support custom fields, like the template version does.

Both should support this, as per the API documentation

I made this change locally and tested it out, and confirmed this worked as expected.

Happy to submit a PR for this change.

Thanks!

@erosiec
Copy link

erosiec commented Dec 14, 2021

Thanks @RPM1984 , we're looking into this now and will get back to you with an update as soon as possible.

In the meantime, you can workaround this by adding custom fields through the Client.AdditionalParameters Dictionary object.

Here is an example from README.md using custom fields and text tags:

var request = new SignatureRequest();
request.Title = "Sokovia Accords as discussed";
request.Subject = "Sokovia Accords - Please Sign";
request.Message = "Please sign ASAP";
request.AddSigner("[email protected]", "Anthony Stark");
request.AddSigner("[email protected]", "Steven Rogers");
request.AddCc("[email protected]");
request.AddFile("sokovia_accords.PDF");
client.AdditionalParameters.Add("custom_fields", "[{\"name\": \"Address\", \"value\": \"123 Main Street\"}, {\"name\": \"Phone\", \"value\": \"555-5555\"}]");
request.UseTextTags = true;
request.HideTextTags = true;
request.TestMode = true;
var response = client.SendSignatureRequest(request);
Console.WriteLine("New Signature Request ID: " + response.SignatureRequestId);

@RPM1984
Copy link
Author

RPM1984 commented Jan 5, 2022

Thanks for the reply @erosiec ! Thanks, didn't know the AdditionalParameters existed. Will keep that in mind for this and future. Looking forward to having this lib updated! :)

@jtreminio-dropbox jtreminio-dropbox added the legacy Related to legacy, non-OpenAPI SDK label Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy Related to legacy, non-OpenAPI SDK
Projects
None yet
Development

No branches or pull requests

3 participants