docusignapidocusign-sdk

DocuSign envelope distinguishing between Number vs Numerical types in template


I have a template that I am passing successfully passing TextTabs, CheckboxTabs; however, my NumberTabs are not displaying. I am reading about Number Tabs vs Numerical Tabs, I double checked, it looks like the template is set up with Number. I can see the value before sending to DocuSign. But when the envelope is opened, it is not there.

Should I be using Numerical? Any other ideas of what is missing?

Update: I tried Numerical and it worked. New question: How can I tell that it was Numerical in the template?

   Number n = new Number
   {
        TabLabel = kvp.Key,// name of DS field, e.g. amount
        Value = kvp.Value //e.g. 25.53
   };

   List<Number>? numTabs = [];
   numTabs.Add(n);

   tabs ??= new Tabs();
   tabs.NumberTabs = numTabs ;

   //continue to populate envelope/signer information in envelope definition

This is my DocuSign template field definition, e.g. amount:

screenshot


Solution

  • Number tabs are old/legacy and numerical tabs are the new/correct way of doing this.

    If you created your template in the last 4 years or so, it will be using Numerical tab instead of Number tab.

    The examples on Dev Center show only numerical tabs, so if you are following our documentation - you should be good.