How to add button to incident form with visibility condition
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 10:45 PM
Hi All,
I want add button (name as- Assigned Me) at the top, this button should only display to users those who belongs to selected assignment group mentioned below Assignment group field in incident record. Means when user selects the assignment group from assignment group field and user belong to that group then that button should be visible to him/her.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 10:07 AM
Hi @Madhavi Hajare ,
In ui actions , in condition field , type the below script :
current.assignment_group && gs.getUser().isMemberOf(current.assignment_group)
On incident form , when user selects the assignment group from assignment group field if user belong to that group then only that button should be visible to that particular user.
if my response is useful mark this post as helpful.
Thanks & Regards ,
Sriharsha