Forum Discussion

ShannonHenry1's avatar
ShannonHenry1
Qrew Trainee
7 years ago

IOL Hide works until a change is made to the filters

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();     }
  • 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
    • BobbyNeelon's avatar
      BobbyNeelon
      Qrew Member
      Hi Shannon,

      I have tried Chayce's suggestion with little luck.

      Did you ever figure this out? I am running into a similar issue and would love to figure out a solution. Thanks!