- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 09:40 AM
Hello,
I have a UI action and I need to add 2 conditions to the "Condition" of the UI Action.
The logic is if user has demand_screener role AND state is 8, 28, or -4 OR if user has demand_manager role AND sate is not 8, 28, or -4
Here is the code i have and it's not working. Any ideas?
(gs.hasRole('demand_screener') && (current.state == '8' || current.state == '28' || current.state == '-4')) || (gs.hasRole('demand_manager') && (current.state != '8' || current.state != '28' || current.state != '-4'));
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 10:12 AM
Hi @SandyL83 ,
Try below condition:
(gs.hasRole('demand_screener') && (current.state == '8' || current.state == '28' || current.state == '-4')) || (gs.hasRole('demand_manager') && (current.state != '8' && current.state != '28' && current.state != '-4'));
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 10:12 AM
Hi @SandyL83 ,
Try below condition:
(gs.hasRole('demand_screener') && (current.state == '8' || current.state == '28' || current.state == '-4')) || (gs.hasRole('demand_manager') && (current.state != '8' && current.state != '28' && current.state != '-4'));
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2023 10:18 AM
Thank you Aman!!! That works perfectly!!!