Forum Discussion

JasonJohnson's avatar
JasonJohnson
Qrew Assistant Captain
7 years ago

Removing 'More' from a grid edit in a for using IOL

I am attempting to use the IOL technique to remove the More option from a grid edit in a form. It is not working. Here is what I am using in the js page

     (function(){
  var querystring=document.location.search;
  if (/dlta=mog/i.test(querystring)) { 
    $('head').append('<style type="text/css">#GE_embActionsMenu {visibility: hidden;}</style>');
  }
})();

Has anyone else done this or can anyone see what I am doing wrong?

  • Changing the line inside the if to:
    $('head').append('<style type="text/css">[qbmenu=ViewOtherOps] {visibility:hidden;} [qbmenu=GE_embActionsMenu] {visibility: hidden;}</style>');
    does the trick for me.

    Let me know if this helps you!