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.

Best Method to make sc task state read only for 3 values(closed complete,closed skipped and incompl)

Dileep Raju
Giga Guru

Hi Team,

Best Method to make sc task state read only for 3 values(closed complete,closed skipped and colsed incomplete).

10 REPLIES 10

You can create ACL for same type= List Edit 

 

https://www.servicenow.com/community/developer-forum/read-only-a-field-in-list-view/m-p/1453056

 

Follow this link and do the needful.

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

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

Hi @Dr Atul G- LNG 
It is working state read only for all state. But here my issue is different. I need editable for State ONHOLD and WORK IN PROGRASS and I need Read only for state CLOSED COMPLETE, CLOSED INCOMPLETE AND CLOSED SKIPPED.

Hi @Dileep Raju 

 

Please share teh code snippet to check and help you.

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

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

I have created write ACL on sc_task.state and added condition
State is not one of closed complete, closed incomplete and closed skipped

-

@Dileep Raju 

 

Did you check with client script (onlaod)

 

if state= Closed

then 

Set read only 

 

try this way.

 

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

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