Question: Hello I have prepare jQuery validation for my Gravity Forms registration form to prevent submit but if my condition is match I want to submit my form but Javascript is not work as expected code is 

```
jQuery("#gform_1").submit(function(e){
    if(jQuery("#input_1_1_3").val()=='' || jQuery("#input_1_1_6").val()=='' || jQuery("#input_1_2").val()=='' || jQuery("#input_1_4").val()=='' || jQuery("#input_1_5").val()=='' || jQuery("#input_1_3").val()=='' || jQuery("#input_1_3_2").val()==''){
      alert("All fields with * is mandatory");
        return false;
    }else{

      jQuery("#gform_1").submit();
      return true;
    }
});

```

The Only problem is with the submit function I don't know why it's not working, You can check form on my [website](http://tajmotel.com/sign-up/)

Answer: 
On your form submit button , you have this code on click

```
   onclick='if(window["gf_submitting_1"]){return false;}  window["gf_submitting_1"]=true;  '

```

This codes makes your submit button works only once . Try removing it and it should work
Custom jQuery not executing with gravity forms? Try putting it inside 

```
jQuery(document).on('gform_post_render', function(){
    // your js here
});

```

Read the documentation here <https://docs.gravityforms.com/gform_post_render/>

From the docs:

> 
> "This jQuery hook is fired every time the form is rendered to allow custom jQuery to be executed. This includes initial form load, going to the next/previous page on multi-page forms, form rendered with validation errors, confirmation message displayed, etc."
> 
> 
>