Debug dirty form

brostoff17
Tera Contributor

I am trying to debug what is causing a dirty form alert and the javascript debugger is not giving detailed info.   How else can I see what script is causing this?

find_real_file.png

4 REPLIES 4

awessel
Kilo Guru

The first place I'd check is any onload client scripts associated to the table. There's a chance there's a hidden field that's getting updated while the form is loading. If there's nothing there you could check your UI Policies to see if any have scripts enabled.


Jaspal Singh
Mega Patron
Mega Patron

Hi Josh,



Possibly a cause of some OnLoad or OnSubmit client script that is updating some field.


Paul Ciarfella
Tera Guru

Did you find the cause to be something other than an on-load or on-submit script?   I'm having the same issue after modifying a form and not making any changes that would affect the dirty form detection.

Paul Ciarfella
Tera Guru

For those that stumble on this post in the future, ServiceNow Guru has a great post on how to debug a problem like this.

I could not find where a field was being changed and using the examples here created a simple BR to log the modified field.  

https://www.servicenowguru.com/scripting/business-rules-scripting/checking-modified-fields-script/