Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Client scripts on list edit

samadam
Mega Sage

I am trying to do some checks on date fields and it doesnt work for list edit. How can I enforce the same rules on list edit?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@samadam 

onCell edit will work on that field in native and you can stop the update
But another way is to use before update business rule and validate and stop the record update.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@samadam 

onCell edit will work on that field in native and you can stop the update
But another way is to use before update business rule and validate and stop the record update.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Dr Atul G- LNG
Tera Patron

Hi @samadam 

 

Code please? Hope you are using onlist edit Client Script.

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

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

samadam
Mega Sage

Created before business rule for the checks.