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', ''); }); }

Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

Running transform maps asynchronously