Show Cancel Change only in implement state for change authorizer role only

Cynthia19
Tera Contributor

Hello 

 

I want to hide the create change UI button for every user in all states but make it visible for the users with the change authorizer role only in the implementing state. is this possible

 

Cynthia19_0-1695786354904.png

 

1 ACCEPTED SOLUTION

 you want cancel UI button to be visible when change state is implement and the user has role authorize_change correct?  in this case remove the other condition

Regards
Harish

View solution in original post

11 REPLIES 11

Harish KM
Kilo Patron
Kilo Patron

you can place the condition on UI action like below

gs.hasRole('rolename') && current.state == -3 // -3 is the choice value of Authorize state

Regards
Harish

Hi 

 

Just to clarify, Place the code on the UI action for the cancel change correct?

Cynthia19_0-1695787556115.png

 

I was not sure if I needed a new UI action 

This is what I had done, what do you think?

Cynthia19_0-1695787942754.png

 

after - 3 you can remove the other condition i.e && new change form.

Regards
Harish