Doc generator - insert URL link?

Does anybody happen to know how to use Word to insert a hyperlink to a URL, where the URL is a field that can be used by docs generator?

For background, I have been happy to generate PDFs using docs generator as an integration in one of my business apps. I have about 20 fields that have successfully imported into my template. However, I would also like to import up to five website links that become live links in the PDF.

I created the original Template using Word with curly brackets around the respective fields. Initially, I assumed I could simply right mouse click on some text (Click here) and define a hyperlink e.g. a URL by simply putting curly brackets around the website address however, Word does not retain the curly brackets once the URL has been defined.

Any tips please?!

@Rupert can you shine some light on this? Thank you.

Thanks for adding me, @ThinhDinh!

Hi @Simon_Hill, indeed a URL set in Google Docs is preserved when the text is replaced. Please define your Google Doc and set the URL on the variable in curly brackets (right click, insert link and then a valid URL). I’ve just tested this again and it works well. Please note that this is static currently, meaning the URL can’t be changed from Glide, but is “hard coded” into the template.

Thanks for using DocsAutomator and let me know if you have any other questions!

Ok thanks for responding. I don’t actually go all the way and try generating the PDF since the curly brackets seemed to disappear as I was developing the template (replaced by other characters) - but happy to try.

I will report back :slight_smile:

Adding a link on the placeholder will work and the placeholder itself won’t disappear. Feel free to reach out in the DocsAutomator chat as well in case of more questions!


I have tried this multiple times and it does not work.

I have confirmed I can add a fixed link, for example a ‘Click me’ with a hyperlink to a BBC website. That works fine with DocsGenerator. But as soon as I replace the address in the Word template with ‘{{link1}}’ where link1 is the Glide URL column the resulting PDF does not generate the link.

I inspected the Word doc hyperlink and I see that everytime, Word has replaced the curly brackets with some symbols.

Step 1. Try to create the hyperlink:

Press enter then try to edit the hyperlink:

It looks like Word does not like hyperlinks with curly brackets.

Hi @Simon_Hill, DocsAutomator needs Google Docs for templates, not Word. How do you connect Word to DocsAutomator? Are you uploading a Word file to Google Drive? Cheers, Rupert

1 Like

Yes that’s right. I simply load it into my Google Docs folder. It is then automatically converted into a Google doc.

I use Word to create the template… Our company does not use Google.

I think you might find that it’s not. When you upload a Word file to a Google Drive, Google will allow you to view and edit the file, but it doesn’t convert it. That’s something you have to do deliberately. If you open the file once it’s uploaded and then look in the File menu, you should see an option to “Save as Google Doc”. When you choose that option, a copy of your Word file is created in Google format, and the original is left intact.

1 Like

@Simon_Hill Thanks. As @Darren_Murphy said, you will have to convert to a Google Doc in a next step. Hyperlinks will then need to be inserted in Google Doc as they may not be preserved from Word (please check). As mentioned above, I tested with adding hyperlinks in Google Docs and that works well.

I think I didn’t describe the process exactly. What I do is open an existing file in Google docs. I think click on File open. It that allows the option to upload a file from iPad. I select the Word template. Google docs then automatically converts it into a Google Doc and automatically saves it in my Google docs.

This has worked perfectly on until now with over 20 fields used in the Word template that successfully carried over to the Google Doc and worked with DocsGenerator/Glide.

The issue is really with Word. When you create the field in the hyperlink URL dialogue box, it doesn’t keep the curly brackets and then the whole process described above goes wrong.

Rupert implies I shouldn’t be using Word to create the template in the first place, which is a pity since our work platform is Microsoft. I just go the last 10 yards by using my iPad as described above. I guess would have to take Rupert’s advice and create the links in Google docs too.

Hi Rupert,

So I just tried to enter a field in Google Docs, e.g. I highlighted ‘Click here’ and selected Edit link. This opened the dialogue box with which to enter the URL. Instead of the URL of course I entered {{link1}}. However, Google Docs throws up the error ‘Invalid link’.

I am beginning to think this approach will not work with Google Docs either. Any tips?

Sorry to harp on this, but I’m not convinced.
Just humour me for a minute - open your document in Google and check at the top left. Do you see a “DOCX” tag (or similar) like is shown below?

If you do, then your file has not been converted.

You can also check by examining the file icon that’s shown in your Google Drive.

1 Like

Hi Darren,

Really appreciate the support and of course, happy to check. I can confirm that the icon is the Google Docx icon and NOT the Word icon (viewing the list as per your second screenshot). When I open it there is no .DOCX extension… maybe because the title CTSM DataSetup template is too long to display everything… but once again, the icon is the Google Docs icon next to the document name and top left corner. It is NOT a MS Word icon.

1 Like

Okay, now I’m convinced :slight_smile:

I needed to be sure, because I’ve seen folks being fooled by this many many times in the past.

1 Like

Hi @Simon_Hill, please see my original reply. The important part here is that support is offered for static hyperlinks only currently. You’re trying to insert a variable as a link, which isn’t working / supported. Currently only static links (meaning the link will always be the same, can’t be changed dynamically) can be added and will be maintained in printed PDFs.

Does that make sense to you?

Original reply:

Ok so it’s a limitation and not possible to insert dynamic link URL’s sourced from a Glide column, where the link text is ‘click here’.

Thanks for the support, nevertheless. I do really recommend DocsGenerator.

Hopefully supported at some point in the future, but not a major priority currently… Thanks! :pray:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.