How to manual validate in Form

Confluence User - 11 Oct, 2021

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();
        }
     });
});

forms;user;javascript;submission;validation

2


18 Oct, 2021
confluenceUser
confluenceUser

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

22 Oct, 2021
confluenceUser
confluenceUser

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

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print