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:

 

 


Sorry, I don’t think that will work for my process, I should have clarified. I was using that DocGen example to make my ask easier as to what the code should look like when it’s raw text.

 

I’m actually using a step called XML Merge in the workflow where there is no Human intervention.  I simply want to take a URL from another document then merge that URL into a document that’s attached to Master Document.  I want the XML merge to handle the Hyperlink merge.  (Btw, I have an update variable step that’s assembling my XML before the merge step)

 

Thanks.