Skip to main content
Question

IOL Hide works until a change is made to the filters

  • Mar 3, 2019 9:10 AM UTC
  • 1 reply
  • 89 views

Forum|alt.badge.img+2
I'm using IOL to hide the checkboxes at the left of some specific reports, but as soon as the user applies a dynamic filter and the report refreshes, the checkboxes come back. How can I make them stay gone, or  at least hide again?

relevant js from my module is below:
  if (/qid=7/i.test(querystring) || /qid=9/i.test(querystring) || /qid=11/i.test(querystring)) {      $(".icr").hide();     }
This topic has been closed for replies.

1 reply

Without seeing the full code its hard to say - but I've had some success just using window.location, particularly window.location.search and parsing the qb_path out of that. 

var url = window.location;
var qb_path = url.search.replace(/\?a=/g, "")

I've done similar operations just doing 
if (path === "abc123" && qb_path === "q&qid=45") {} 
with pretty good success.



Chayce Duncan | Technical Lead
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base