Skip to main content

Hi everyone

I want to add a hyperlink on a PDF to sign

I am creating the envelope via SDK using node by passing the tabs definition via params 

 

I have ran into this article https://support.docusign.com/s/articles/How-to-create-a-hyperlink-in-DocuSign?language=en_US&rsc_301

but I can not figure out a way to tell DocuSign SDK to use the custom field that I have created manually following the guide.

is there a way to add the hyperlink using DocuSign SDK or calling the rest API when creating the envelope?

 

Thanks in advance.

Hello,

Thank you for posting to DocuSign's Community.

I have prepared an example so that you have an idea of ​​how to implement a hyperlink using Java, it is important to mention that this is just an example.

 

import com.docusign.esign.model.*;
import java.util.*;

Text customTab = new Text();
customTab.setTabLabel("TabLabel");
customTab.setAnchorString("AnchorString");
customTab.setAnchorXOffset("1");
customTab.setAnchorYOffset("1");
customTab.setFont("Arial");
customTab.setFontSize("Size12");
customTab.setBold(true);
customTab.setUnderline(true);

String hyperlink = "<a href=\"https://www.example.com\">Example Link</a>";
customTab.setValue(hyperlink);
customTab.setLocked(false);
customTab.setRequired("true");

Tabs tabs = new Tabs();
List<Text> textTabs = new ArrayList<>();
textTabs.add(customTab);
tabs.setTextTabs(textTabs);

Signer signer = new Signer();
signer.setEmail("recipient@example.com");
signer.setName("Recipient Name");
signer.setRecipientId("1");
signer.setTabs(tabs);

 

Regards,

 

Eric | Docusign


Hi @Eric Ruiz

I will give it a try however I’m using javascript but I can figure out how to use the same approach.

Thank you.

 

Regards.

 

Mariano Lopez


@mlopezchina Maybe can reference this document: 

https://www.docusign.com/blog/developers/the-trenches-creating-hyperlinks-through-the-api-the-apex-toolkit


Many thanks @Hengfeng Ge your reference helped me a lot


Reply