set variable in custom js
$(document).ready(function() {
var agency1 = "get_active_user('agency')";
alert('agency1');
if(agency1=="redkey"){
alert('agency1');
}
else{
}
});
i try to set a variable with a helper code in custom JS, but get_active_user() do not work.
i want to set the variable and if agency = A, then show an iframe for agency A
how to set the variable on page load and pass the variable to the custom view?
thanks in advance!