Please help with hiding a UI Action based on condition

Erica2
Tera Contributor

Hello,

I need your help on hiding  an UI Action button when Approval field is showing "Rejected"

Erica2_0-1718323944255.png

 

Here is what I got, but it did not hide the button.  Thank you

Erica2_1-1718324133737.png

 

current.cat_item == '43fee0ed8779c65015faa93e3fbb351d' && approval !='Rejected';
1 ACCEPTED SOLUTION

Kris Moncada
Tera Guru

Try changing the condition to the following:

 

current.getValue('cat_item') == '43fee0ed8779c65015faa93e3fbb351d' && current.getValue('approval') == 'requested';

View solution in original post

3 REPLIES 3

Kris Moncada
Tera Guru

Try changing the condition to the following:

 

current.getValue('cat_item') == '43fee0ed8779c65015faa93e3fbb351d' && current.getValue('approval') == 'requested';

zackss
Tera Contributor

Hello @Erica2 ,
It may seem to be the string of your approval field, and you don't need a semi-colon ';' ..... try this changing your condition to this :

current.cat_item == '43fee0ed8779c65015faa93e3fbb351d' && current.approval != 'rejected'


If this has been of any help, please mark as solution and give a thumbs up. Thank you!

Zack Hilacan1
Mega Sage

Hey @Erica2 ,

 

This might be due to your string of the approval field and semi-colon, so try changing your condition to this one:

current.cat_item == '43fee0ed8779c65015faa93e3fbb351d' && current.approval !='rejected'

 

If this has been of any help, please mark as solution and give a thumbs up. Thanks!

Zack