Skip to main content

Can anyone provide some example code for inserting a dynamic link into a Doc Gen?  Specifically I have a field on my Doc Gen intake where a user enters a URL.  That URL then should create a Hyperlink on the generated document.  I’ve tried various combination per Docusigns support page but no luck.  Here is what I’ve tried so far:


<html><head></head><body><a href=”<# <Content Select=”//Link” Optional=”true”/> #>”>Link to Contract Summary</a></body></html>


<a href=”<# <Content Select="//Link" Optional="true"/> #>”>Link to Contract Summary</a>

Hi ​@JohnSimp,

 

As a possible workaround, you can create a Term file and connect that to the document generation form via the Term field type. Links pasted as hyperlinks in a term text field will get merged onto the end document as a hyperlink. They could also create the link on the fly via the docgen form inside the term field Option Text box which should then merge onto the document:

Term field in document generation form:

End document result with hyperlink: