Check for date in the past -- client script

could be done with AJAX call

but UI Policy a simpler way!

function onCondition() { //--July2020 //--DOB must be a date in the past //--service portal friendly var msgKey="catalog.dob.invalid"; getMessage(msgKey, function(msg) { //g_form.showFieldMsg('date_of_birth', msg, 'error'); alert(msg); //g_form.addErrorMessage(msg); g_form.setValue('date_of_birth', ''); }); }


Popular posts from this blog

GlideRecord setValue

URL link in addInfoMessage