tiagomacul
Giga Sage

My Checkbox is disabled but it's possible to select and this action save effectively my record.

We're testing our development when faced this behaviour on the screen the checkbox is disabled, but instead of the common action that should be not clickable, could be clicked and saved.

find_real_file.png

Therefore we start to debug. How to do it?

 

ImageDescription
 01. F12 Debugger
find_real_file.png02. Open Console Tab
 find_real_file.png 03. Search by error
 find_real_file.png

04. identifying the error you'll be able  to fix it, in my case was a UI POLICY  

 

Error's cleary saying:

 

Uncaught TypeError: g_user.getValue is not a function

find_real_file.png

Updated to 

 find_real_file.png

05. Go to script and fix it 

g_user.getValue updated to g_form.getValue

find_real_file.png

06. Save and the error gone, as result my checkbox can't be clicked

.

image

summary

upgrades

Servicenow versions

Version history
Last update:
‎03-22-2021 07:44 AM
Updated by: