1
0
-1

I need to validate onSubmit of form if the variable have value then complete else ignore event click and hide 'please wait' message

I think the code below was working in joget v6 but I need the updated for Joget DX
$(document).ready(function(){
  $("#assignmentComplete").click(function() {
     var url=$("#url").val();
     If(url==null || url==""){

        event.preventDefault();
        $(".blockUI").remove();
        }
     });
});

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, you could just add a Default Validator to the relevant field and set it as mandatory. 

      1. Issa

        It is a hidden value filled by external API in the form
        Is there a way to validate a hidden value or wait for response from AJAX request

      CommentAdd your comment...