- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:14 AM
Can any one provide me the condition for UI action in change form so it is only visible to requested by and requested by manager ?
Solved! Go to Solution.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:20 AM
Hi @Aryan you can use below script and put it in UI Action condition
current.requested_by == gs.getUserID() || current.requested_by.manager== gs.getUserID()
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:21 AM
@Aryan : Use below line of code in condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:21 AM - edited ‎02-28-2024 12:21 AM
Hi @Aryan,
Try the following script in your UI Action condition.
current.getValue('requested_by') == gs.getUserID() || current.requested_by.manager.toString() == gs.getUserID();
Might want to put some additional conditions such as 'current.active == true' as well.
Cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:20 AM
Hi @Aryan you can use below script and put it in UI Action condition
current.requested_by == gs.getUserID() || current.requested_by.manager== gs.getUserID()
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:21 AM
@Aryan : Use below line of code in condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2024 12:21 AM - edited ‎02-28-2024 12:21 AM
Hi @Aryan,
Try the following script in your UI Action condition.
current.getValue('requested_by') == gs.getUserID() || current.requested_by.manager.toString() == gs.getUserID();
Might want to put some additional conditions such as 'current.active == true' as well.
Cheers