i want to show a popup message when start date is greater than end date. inserted the below code in file common.js.php under function Tablename_validateData() by
coping one of the existing error message code and pasted and changed the field names, but the popup message is not showing "the start date is greater than end date" as message but shows the copied source error
Code: Select all
if($('Callreceived_date').value >= $('CallResponded_date').value)
{ modal_window({ message: '<div class="alert alert-danger"><?php echo addslashes($Translation['field not null']); ?></div>', title: "<?php echo addslashes($Translation['error:']); ?> Problem Related", close: function(){ jQuery('#Callreceived_date').focus(); } }); return false; };