onCellEdit client script

AnkitS27
Tera Contributor

I tried implementing an onCellEdit client script for the priority field on the Incident list view, but the script never gets triggered. Why does this happen, and how can this behavior be explained with respect to platform constraints or configurations? Could you also provide a relevant scenario where this limitation becomes significant?

3 ACCEPTED SOLUTIONS

GlideFather
Tera Patron

Hi @AnkitS27 

 

it doesn't necessarily have to be your script 😉 Priority is calculated field based on the Urgency and Impact values!

 

You cannot update Priority, rather the two mentioned fields. Try to apply your script or one or both of these fields and you should see the difference...

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


View solution in original post

Juhi Poddar
Kilo Patron

Hello @AnkitS27 

  • In ServiceNow, Priority is typically not directly user-editable.
    It's derived dynamically using a Data Lookup Definition (dl_u_priority), based on the values of Impact and Urgency.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

View solution in original post

nityabans27
Giga Guru

Hi @AnkitS27 ,
Achieving this won't be possible if you are directly changing priority or working on it. You can indirectly change priority by working on impact and urgency. There is no direct way of altering priority.

If you find this answer useful please mark it as helpful and accept as solution.
Thanks and regards
Nitya Bansal

View solution in original post

5 REPLIES 5

GlideFather
Tera Patron

Hi @AnkitS27 

 

it doesn't necessarily have to be your script 😉 Priority is calculated field based on the Urgency and Impact values!

 

You cannot update Priority, rather the two mentioned fields. Try to apply your script or one or both of these fields and you should see the difference...

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


jcmings
Mega Sage

What are you trying to achieve? Can you share a screenshot of your client script? Also want to note that the Priority field follows priority lookup rules (meaning the values of the Impact and Urgency fields determine Priority).

Juhi Poddar
Kilo Patron

Hello @AnkitS27 

  • In ServiceNow, Priority is typically not directly user-editable.
    It's derived dynamically using a Data Lookup Definition (dl_u_priority), based on the values of Impact and Urgency.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

Ankur Bawiskar
Tera Patron
Tera Patron

@AnkitS27 

what's the business requirement?

what script you used? share screenshots

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

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