hide ui buttons on specific view

juan casas
Mega Expert

Hi all

[SAN DIEGO VERSION]

I know I can hide a button by changing the condition on the UI button itself, however, I don't wanna do that because they are in the global scope.

 

I got this to work once but it's not working anymore

 

find_real_file.png

 

 

I know the button is there because If I run the code on the 'Javascript Executor', it hides the button

 

find_real_file.png

 

I also tried a client script but I failed like a baby

 

 

I got this to work once, not sure what the issue is

1 ACCEPTED SOLUTION

Yousaf
Giga Sage

Hi Juan,

Can't you just do that here without DOM manipulation.

find_real_file.png

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

View solution in original post

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

@juan casas TRY THIS 

 

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

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

  item.hide();

  }

  });

didnt work.

 

did you try in sandiego?

find_real_file.png

@juan casas change the uI action name you gave show workflow .Replace it with your UI action name

Yousaf
Giga Sage

Hi Juan,

Can't you just do that here without DOM manipulation.

find_real_file.png

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***