Checkboxes Not Changing Value

raprohaska
Kilo Guru

We have a strange issue. Our incident table seems to be corrupt. We are now unable to change the value on any check-box. But let me clarify. The user can click and change the check-box, but the value behind the check-box doesn't change. So if the check box checked = false, user changes to true, user clicks save, form reloads... value is still false.

I debugged the client side and placed a break-point on the built in onChange event:

function onChange(elementName){

      var eChanged = gel(elementName);

var eOriginal = gel("sys_original." + elementName);

You see it grabs the original value and the new value. New value is placed into eChanged. No matter what the check-box's checked value is, the eChanged value is always = to the eOriginal value.

This is a strange one. I don't see any other code fire before this even so I don't see how anything we implemented is changing the value. It only affects our incident table. I'm wondering if anyone out there has ever seen anything like this before. I'm sure we changed a configuration that is causing this as it was working and is only affecting the environments that we have done recent changes to, DEV and SBOX.

Thanks,

AA

14 REPLIES 14

marcguy
ServiceNow Employee
ServiceNow Employee

are you sure the field is not on the form twice? I've seen this before where a field is also on a section/tab and this causes this issue, worth a check.


I'm sure. The problem is affecting every Boolean value on the table. I think it is probably a scripting issue, its just that i see no errors in the console when I'm loading the form.



It only affect the incident form and it was working prior. So it is something we changed.



All of you provided great ideas. Unfortunately without having access I don't think there is much else you can provide. I just needed to hear if there were any common mistakes or if anyone has seen this before.



Thanks to you all,


AA


stevebogart
Tera Expert

Has anyone found a solution to this?   This just started happening to me on a change form.   Can set the Checkboxes to True or False from the List view but nothing happens when you check the box on the form.   When you save, it comes back as unchecked.


And UI Policies are not firing when you check the check boxes.   But if you set the value to true on the list view and then go into the form, the UI Policy functions as intended




Hi Steven.   I know this is an older post but wondered if you ever found a solution to this problem.   It just started happening to us on some of our tables.



Thanks,


Mike