The CreatorCon Call for Content is officially open! Get started here.

How to hide/remove insert / insert and stay option from record

pradeepgupta
Giga Expert

How to hide/remove insert / insert and stay option from record

1 ACCEPTED SOLUTION

Hello,



I am sorry for not making myself clear. The value which needs to be the same as the one you want to override is 'Action name', which for Insert is 'sysverb_insert' and 'sysverb_insert_and_stay' for Insert and Stay. This way, with a condition of 'false' should be able to hide them.


Also note that 'Active' needs to be True.


View solution in original post

7 REPLIES 7

Hi Pradeep/Filip,



I am able to hide the button available on the form using below client script, could you please help me to modify the code and make it to hide context menu.



var items = $$('BUTTON').each(function(item){


  if(item.innerHTML.indexOf('Update') > -1){


  item.hide();


  }


  });


Hello,



I am sorry for not making myself clear. The value which needs to be the same as the one you want to override is 'Action name', which for Insert is 'sysverb_insert' and 'sysverb_insert_and_stay' for Insert and Stay. This way, with a condition of 'false' should be able to hide them.


Also note that 'Active' needs to be True.


Thanks a lot Filip, it works as expected..