Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

SorenDahk
Level 2
Level 2

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
Krishnanunni
Correct answer by
Level 3
Level 3

Hi @SorenDahk ,

Could you please try setting the condition tag as follows

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



View solution in original post

2 Replies
Krishnanunni
Correct answer by
Level 3
Level 3

Hi @SorenDahk ,

Could you please try setting the condition tag as follows

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



View solution in original post