我试图从C#代码预先填充自定义字段值,但我无法。我使用了以下代码段来执行此操作
var client = new Client("MY API KEY");
var request = new TemplateSignatureRequest();
request.AddTemplate("docID");
request.Title = "Test Titel";
request.Subject = "Test Subject";
request.Message = "Test Message.";
request.AddSigner("Me", "xxxxx@example.com", "Test");
request.AddSigner("Client", "xxxxx@example.com", "Test");
var firstName = request.GetCustomField("FirstName");
firstName.Value = "John";
request.TestMode = true;
var response = client.SendSignatureRequest(request);
我已经为我分配了客户字段并验证了该字段的API ID密钥。但仍然无法获得结果。我们还需要添加任何其他内容,以便显示John的值。
答案 0 :(得分:1)
尝试 request.AddCustomField(" fName"," Alex");
另外,如果您愿意,请随时联系apisupport@hellosign.com获取更多帮助。