Adding Dynamic URL to Image in Google Docs Template

I’m using the Google Docs module “Create a Document from a Template” and I’m having trouble adding a dynamic URL to an image that’s already inside the template. When I try to add a {{wallet_link}} placeholder to the image’s URL, I get an “Invalid URL” error. I know how to add a new image using Google Cloud Storage with an Image Object ID, but that’s not what I’m trying to do here. I need the image to be clickable, and the link should be a dynamic value generated by my scenario. Any advice on how to achieve this?

EDIT: I’ve found a workaround. Instead of using “Create a Document from a Template” use “Create a Document” module with html content. First go to you Google Docs file template and download it as HTML. Then use the HTML content to create a Google Docs file with all your variables.

4 Likes

You good here then @surmacki ?

Yes. You can mark as solved.

1 Like

As the original poster, @surmacki, you mark the solution.

1 Like

You can move your solution down to your second post, which has been marked a solution (the first post can’t be a solution).

1 Like

I’ve found a workaround. Instead of using “Create a Document from a Template” use “Create a Document” module with html content. First go to you Google Docs file template and download it as HTML. Then use the HTML content to create a Google Docs file with all your variables.

2 Likes