Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Buttons in new application form

Rajkumar Bommal
Tera Contributor

Hi 
I created a new application and state in the form changes by the form buttons,
now i want to make" work in progress" button only visible to assignment group members, how can i manage that .

RajkumarBommal_0-1712738841370.png

 

2 ACCEPTED SOLUTIONS

Ranjit Nimbalka
Mega Sage

Hi @Rajkumar Bommal 

you can add a condition in a UI action like below;-

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

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Ranjit
 

View solution in original post

Astik Thombare
Tera Sage
Tera Sage

Hi @Rajkumar Bommal  ,

 

Navigate to System Definition  -> UI Action - > Work In Progress 

 

In condition field of UI Action Please Use Below Script 

 

gs.getUser().isMemeberOf(current.assignment_group)

 

AstikThombare4_0-1712739788183.png

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

 

Thanks,

Astik

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rajkumar Bommal 

 

YOu need to add the condition on the this UI action, Go to OOTB action and you will see the condition YOu need to put condition. 

 

https://www.servicenow.com/community/developer-forum/ui-action-button-visible-only-to-people-of-a-sp...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ranjit Nimbalka
Mega Sage

Hi @Rajkumar Bommal 

you can add a condition in a UI action like below;-

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

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Ranjit
 

Astik Thombare
Tera Sage
Tera Sage

Hi @Rajkumar Bommal  ,

 

Navigate to System Definition  -> UI Action - > Work In Progress 

 

In condition field of UI Action Please Use Below Script 

 

gs.getUser().isMemeberOf(current.assignment_group)

 

AstikThombare4_0-1712739788183.png

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

 

Thanks,

Astik