brad
October 2, 2023, 8:35pm
1
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.
franse
October 2, 2023, 8:44pm
2
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
brad
October 2, 2023, 8:57pm
3
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