We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

unable to get form values in Client Script OnCellEdit

Ankit88
Tera Contributor

Hi All,

 

I have a requirement to write a OnCellEdit client script, its working fine but need to add a form validation for which I require a form value in the script, as its a list view client script so not able to get the form value i.e., using g_form.getValue().

 

Can you pls suggest a way to get the same. I need to use the same to call a Script Include.

Below code is not working in OnCellEdit client script.

if (newValue) {
var change_no = g_form.getValue('reference_field');

}

 

0 REPLIES 0