- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 08:47 PM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 10:29 PM
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
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 09:16 PM
Refer below screenshot
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 09:14 PM
Hi @Cynthia19,
You need to add conditions in UI action condition field as Harish mentioned.
gs.hasRole('change_authorizer') && current.state == '-1' // -1 is implement state value
If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 09:41 PM
I understand what I need to add to the condition to do and I thank you both but what there is an existing code on the condition "gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isCancelAvailable()"
Removing and adding this gs.hasRole('change_authorizer') && current. State == '-1', what happens to this part of the code && new ChangeFormUI(current).isCancelAvailable()"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 09:51 PM
the third condition && new ChangeFormUI(current).isCancelAvailable() validates the state value from script include ChangeFormUISNC and function
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 10:23 PM
Thank you Harish,
So my question is I want that do I have to remove? In other words, I want it to function exact same way. Only change I want to make is to allow change_authorizers to see the button in the implement state
My apologies as I am new and learning