How to add button to incident form with visibility condition

Madhavi Hajare
Tera Contributor

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.

 

1 REPLY 1

SriharshaYe
Kilo Sage

Hi @Madhavi Hajare ,

In ui actions , in  condition field , type the below script :

current.assignment_group &&  gs.getUser().isMemberOf(current.assignment_group)

WhatsApp Image 2024-10-21 at 21.30.32 (2).jpeg

WhatsApp Image 2024-10-21 at 21.30.32 (3).jpeg

 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