Skip to content

"errorCode":"REQUIRED_TAB_INCOMPLETE" #238

Open
@dijiehuang

Description

@dijiehuang

1、We have created a Template and pre-fill Fields by this way( link: https://support.docusign.com/s/document-item?language=en_US&bundleId=xry1643227563338&topicId=oqb1611172929107.html&_LANG=enus).
2、Then get templateId from step 1
3、My code:
` EnvelopeDefinition env = new EnvelopeDefinition();
env.setTemplateId(templateId);

    TemplateRole signer1 = new TemplateRole();
    signer1.setEmail(signerEmail);
    signer1.setName(signerName);
    signer1.setRoleName("role1");


    TemplateRole signer2 = new TemplateRole();
    signer2.setEmail(ccEmail);
    signer2.setName(ccName);
    signer2.setRoleName("role2");

    Text text = new Text();
    text.setDocumentId("1");
    text.setPageNumber("1");
    text.setXPosition("99");
    text.setYPosition("114");
    text.setTabId("3a6e1e3a-3d3d-4629-8dbe-f616e338bec1");
    text.setTabLabel("a5045fac-9679-498a-a73c-6c255dfccc49");
    text.setValue("123456");
    text.setLocked("true");
    Tabs tabs = new Tabs();
    tabs.setTextTabs(Arrays.asList(text));

    PrefillTabs prefillTabs = new PrefillTabs();
    prefillTabs.setTextTabs(Arrays.asList(text));
    tabs.setPrefillTabs(prefillTabs);
    signer1.setTabs(tabs);
    signer2.setTabs(tabs);

    env.setTemplateRoles(Arrays.asList(signer1, signer2));
    env.setStatus("sent");`

4、invoke ”envelopeApi.createEnvelope( )“ method,it returns "'{"errorCode":"REQUIRED_TAB_INCOMPLETE","message":"A Required field is incomplete. TabId: bce12361-40b1-4d4d-908a-8b549e2eb0b9"}'"

5、the pre-fill tab doesn't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions