I would like to create a JS action in one of my surveys and be able to pass a variable that previously was passed to the survey by URL.
I created the hidden value with name “user_id” and value url[”user_id”]. I pass the variable to the survey like: ?user_id=4
The hidden value gets saved.
Is it possible to pass this variable somehow?
This is a great question that has had me stumped.
If it were on the first page you might be able to use something like
My only idea that may/may not work for you –
The only caveat that I am uncertain about is wether that will still render in the html code so you can still pull it. If not, then skip the question hide step and set the CSS to display:none. Then you should be able to use the DOM to pull that value so you can compare it.
Let me know if this works for you.