Skip to main content
Level 4
Jun 23, 2021 1:28 PM UTC
Solved

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

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: 

 

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? 🙂 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Krishnanunni
KrishnanunniAccepted solution
Level 4
Jun 24, 2021 9:18 AM UTC

Hi @sorendp ,

Could you please try setting the condition tag as follows

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



2 replies

Krishnanunni
KrishnanunniAccepted solution
Level 4
Jun 24, 2021 9:18 AM UTC

Hi @sorendp ,

Could you please try setting the condition tag as follows

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



Translate
SorenDPAuthor
Level 4
Jun 24, 2021 10:09 AM UTC
Thank you @krishnanunni. It works like a charm 🙂
Translate