What is the syntax for using url parameters in javascript "condition" expression on a web application? | Community
Skip to main content
Level 4
June 23, 2021
Solved

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

  • June 23, 2021
  • 1 reply
  • 932 views

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.
Best answer by Krishnanunni

Hi @sorendp ,

Could you please try setting the condition tag as follows

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



1 reply

Krishnanunni
KrishnanunniAccepted solution
Level 4
June 24, 2021

Hi @sorendp ,

Could you please try setting the condition tag as follows

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



SorenDPAuthor
Level 4
June 24, 2021
Thank you @krishnanunni. It works like a charm 🙂