Hi All,
I'm struggling with a simple requirement and hopefully someone went through it before and can help me out.
I have a web template called "Return Contact" that serves me as a server function, in it I simple have a fetchxml that returns me a contact based on a parameter dn. Everything works fine when I pass the parameter as a simple string like this:
<script>
var result = {% include 'Return Contact' dn:'123' %}
</script>
But my problem is, the parameter is within a variable, so I need to do something like this:
<script>
var myVar = '123';
var result = {% include 'Return Contact' dn:myVar %}
</script>
But for some reason it doesn't work, I simply need to pass a parameter that is held within a JS variable to my web template. Thoughts? Thanks