Expand my Community achievements bar.

The 5th edition of the Campaign Community Lens newsletter is out now!
SOLVED

What is the syntax for using url parameters in javascript "condition" expression on a web application?

Avatar

Level 3

Hi there! I have made a javascript that is searching for recipients by an email value grabbed from a parameter in the url. 

I have this so far: 

SorenDahk_0-1624454877320.png

 

But it is failing because it can not read the value of the value <%=ctx.vars.email%>. 

Any pointer into how this can be achieved? 🙂 

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @SorenDahk ,

Could you please try setting the condition tag as follows

<condition expr={"@leadEmail = '"+ctx.vars.email+"'"}/>



2 Replies

Avatar

Correct answer by
Level 4

Hi @SorenDahk ,

Could you please try setting the condition tag as follows

<condition expr={"@leadEmail = '"+ctx.vars.email+"'"}/>



page footer