ServiceNow: check mandatory fields in client

For example if need to check from a client side ui action if the mandatory fields are complete

var arrMand = g_form.getMissingFields();
if(arrMand.length>0){
alert('Complete mandatory fields');
}else{

               //--carry on
}

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue