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

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage