onchange catalog client script code : start date 'access_from' variable : function onChange ( control , oldValue , newValue , isLoading ) { if ( isLoading || newValue == '' ) { return ; } var ga = new GlideAjax ( 'servicerequest_ajax' ); ga . addParam ( 'sysparm_name' , 'validate_fromto_dates' ); ga . addParam ( 'sysparm_startdate' , newValue ); ga . addParam ( 'sysparm_date_entered' , newValue ); ga . addParam ( 'sysparm_enddate' , g_form . getValue ( 'access_to' )); ga . getXMLAnswer ( function ( answer ) { //alert(answer); var res = answer . split ( ':' ); if ( res [ 1 ]!= "OK" ){ alert ( 'Check dates--' + res [ 1 ]); g_form . setValue ( 'access_from' , '' ); return false ; } }); }