Dynamic Link to External Site

I need to create a link from one site to another passing a URL Parameter.

I tried:

<a href="https://www.mywebproject.ca/clientsurvey/{{client_random}}">

{{client_random}} is populated from a recordset on the initial project.

I also tried dynamic Attribute --> Link but that didn’t work either for external links. Basically I just need to know how to pass a value to a route on a different site.

What about:

<a href="" dmx-bind:href="'https://www.mywebproject.ca/clientsurvey/'+client_random">Your link title</a>

I tested:

<a href="" dmx-bind:href="'https://www.mywebproject.ca/clientsurvey/'+serverconnect1.data.value">Your link title</a>

And it’s working

1 Like

Thanks Franse! I swear I tried that exact thing. I must have been missing an apostrophe or something.

Thank you!

1 Like

Both will work, for dynamic expressions you always have to prefix the attribute with dmx-bind:.

<a dmx-bind:href="https://www.mywebproject.ca/clientsurvey/{{client_random}}">
<a dmx-bind:href="'https://www.mywebproject.ca/clientsurvey/'+client_random">
1 Like