Description Field Not Showing as Mandatory in SOW View for Standard Change – Need Help

lakshmi9
Tera Contributor

 

  • I’m working on a requirement where the Description field should be mandatory for Standard Change Requests, but only when the State is 'New' and the view is SOW.
  • I tried implementing this using a UI Policy, but it didn’t work in the SOW view. I then attempted it using a client Script, and it works fine in the Default view, but not in SOW.
  • The field is present in the SOW form layout, so I’m not sure why the mandatory condition isn’t being applied.

If anyone has faced a similar issue or could kindly guide me on how to achieve this, I’d really appreciate your help.

3 ACCEPTED SOLUTIONS

Hi @lakshmi9 ,

Please check and confirm if you have selected for a specific view
because it will work.

SD_Chandan_0-1752657829298.pngSD_Chandan_1-1752657842385.pngSD_Chandan_2-1752657846707.png

Mark it helpful if this helps you to understand. Accept solution if this give you the answer





Thank you
Chandan

View solution in original post

Hi @lakshmi9 ,

it is directly coming from template that's why is is not appearing mandatory.

Thank you
Chandan

View solution in original post

Hi @lakshmi9 

There are two possible reasons: First, there might be another script running on the same field that is overriding the mandatory setting. Second, it could be a bug. Also, please check if there are 2-3 views in the SOW and whether you added the correct view in the script.

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

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

View solution in original post

13 REPLIES 13

pavani_paluri
Giga Guru

Hi @lakshmi9 ,

You can achieve this by using onLoad Client Script with View Check.

Please create display business rule to get the current form view and make description mandate if form is SOW.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P

Andrew_TND
Mega Sage
Mega Sage

Hey @lakshmi9 

 


So far it seems you’re not far off, off hand I believe if you untick global you can then input the view for when to run. 


That should do the trick but let me know how you get on.

 

Please mark as helpful or if it’s resolved the issue - CORRECT!

Hi @Andrew_TND 

 

  • I had selected the Global option in both the UI Policy and the Client Script. The UI Policy didn’t make the Description field mandatory, but the Client Script worked correctly in the Default view — but not in the SOW view.
  • To address this, I created a separate onload Client Script and specified the SOW view explicitly, but even that didn’t resolve the issue — the Description field is still not showing as mandatory in the SOW view.

Pradeep Thipani
Mega Sage

Hi @lakshmi9 ,

 

Have you checked on the details tab weather it is mandatory or not. When you write a UI Policy/client script on SOW View usually it will applicable.

 

PradeepThipani_0-1752605196005.png

 

Thanks,

Pradeep

 

 

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep