Hello
On JS Button I had this code that worked fine . It cleans the page and reset all filters
{window.location.href="…/grid_pipeline/grid_pipeline.php" ;}
Now I have to make a "if else "depending on the user’s grant like this one
if ([glo_limited_view]==‘Y’)
{window.location.href="…/grid_pipeline_limited/grid_pipeline_limited.php" ;}
else
{window.location.href="…/grid_pipeline/grid_pipeline.php" ;}
The JS sintax is for sure uncorrect … and the button stopped to work.
I suppose the problem is within
if ([glo_limited_view]==‘Y’)
that in JS maybe has to be written in another way… (the global variable [glo_limited_view] in JS ?? )
How do I write the if else into js button ?
Thanks