How to remove the "Please wait" message in Add Entry screen if the custom validation fails?
Hi there,
Basically, the Add Entry screen is calling from the form grid and I want to do some validation before the data is added back onto parent form.
The "Please wait" message is shown when i put in the "return false" statement in the custom HTML. My intention actually want to force the user to key in the completion date if the completion status is set to yes. Anyhow failed to do it. Would appreciate for any workarounds. Thanks.
******* Sample script as below *******
<script>
$(document).ready(function(){
// to validate the completion date field whem the ADD button is clicked
$("#submit").click(function() {
if ( FormUtil.getValue("subTaskCompletionStatus") == "Yes" && FormUtil.getValue("subTaskCompletionDate") == "" ) {
alert("Please select completion date if the completion status is set to YES.")
return false;
}
});
});
</script>