Condition in an edit button
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 01:09 AM
Hi all,
I need to do a condition in an edit button to show this button only to the assignment group in a table. How can I take the current assignmet group in the condition?
Thanks a lot
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 01:20 AM
Hi @Juan18,
You can add the below script in the UI Action condition:
!current.assignment_group.nil() && gs.getUser().isMemberOf(current.assignment_group.toString())
Please mark this response as correct or helpful if it assisted you with your question.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 01:21 AM
I tried this and doesnt run in edit button