Hide UI Actions when state is closed complete or closed incomplete

matthew_strecke
Kilo Contributor

I'm trying to hide two UI actions when the state is either closed complete or closed incomplete. If the state is either of these values I don't want the buttons to show up on the form. I added conditions to the UI actions but this will only hide the button if the form is in that state and not hide both buttons. Any suggestions? I've tried UI policies and client scripts but so far nothing is working properly.

1 ACCEPTED SOLUTION

Arindam Ghosh
Mega Guru

Hi Matt,



Your Condition should be like :



current.state!=<value for Closed Complete> && current.state!=<value for Closed Complete>



Please replace the values and use it in condition



Thanks,


Arindam


View solution in original post

5 REPLIES 5

The reason it wasn't working properly, I was using an || statement in the condition when checking both states and not &&. Now it works properly.



Thanks,


Matthew Strecker