How to hide "Unparseable number: 'Infinity'" error in Control Objective score section?

NasrinS
Tera Contributor

Hi everyone,

I'm working with the Control Objective table in ServiceNow, and in the Score section of the form, I'm seeing an error message: Unparseable number: "Infinity"

 

I want to hide this error message from the form UI only — it doesn't need to be fixed in the backend right now, just hidden from end users.


 What I’ve Tried:
I checked for any Business Rules, Client Scripts, UI Scripts, and Script Includes.... related to the score field but couldn’t find where this message is originating from.

I attempted to hide the error using an onLoad Client Script, but it didn’t work.

Here are the client scripts I tried:

// Attempt 1
function onLoad() {
// g_form.hideFieldMsg('u_residual_risk');
g_form.hideErrorBox('u_residual_risk');
}

// Attempt 2
function onLoad() {
var errorMsg = document.querySelector('.form_error');
if (errorMsg && errorMsg.textContent.includes('Unparseable number: "Infinity"')) {
errorMsg.style.display = 'none';
}
}

1 REPLY 1

ShafrazMubarak
Giga Guru

Try raising a ServiceNow ticket and see what is the issue in the UI element. 

 

In the meantime you can inspect the UI element in the browser.