How to make fields mandatory in the respective activity in the playbook

pdurgapavan
Tera Contributor

whenever I'm trying to make fields mandatory using UI policies or client scripts in the respective state, fields are making mandatory but the thing is on the activity Mark Complete button or Update button is not working because on the form mandatory fields are not filled. Could someone help me to make fields mandatory in the respective activity in the playbook

 

@Ankur Bawiskar 

@Dr Atul G- LNG 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@pdurgapavan 

UI policies or client script which run on all view run on User form as well if you open a form in playbook.

if playbook is running on table A and you are opening record from Table A then UI policy or client script will run.

what's the issue for Mark complete or update button?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello @Ankur Bawiskar , @Dr Atul G- LNG ,

 

Let take a OT Advance Change playbook where we have different states called Initiate, Plan, Implementation.. etc. On Each state, we have different activities like for Initiate we have 1. Describe the change, 2. Capture the risk and 3. Assign the Change activities are there. For Plan state we have 1. Add Justification, 2. Add Implementation Plan, 3. Add Risk and Impact Analysis, 4. Add Backout plan, 5. Add Test Plan and 6. Schedule the change activities are there.

 

And on Each activity we have different fields.

 

Let's say If I want to make Assignment group field mandatory where assignment group field is present on the Assign the Change Activity on the initiate state. with the help of either UI Policy or with client script I made Mandatory.

 

Now what will happen is If I try to create a new record on the OT change and fill all the details on the first activity and try to click on Update button or Mark Complete button. those are not working until I fill the Assignment group field on the details tab where we can see all the fields.

 

So, I want to make fields mandatory when we reach the respective activity.

 

Hi @pdurgapavan 

 

I think it is expected one , as you are creating a new change and then assignment gorup is mandatory and it will show error if you try to submit wthout filling it.

*************************************************************************************************************
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]

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @pdurgapavan 

 

Agree with @Ankur Bawiskar . Also please share screenshot what is not working.

*************************************************************************************************************
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]

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