WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#41656 new defect (bug)

Bugs for Gravity Form Validation using JQuery!

Reported by: emantoyaks Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8.1
Component: Plugins Keywords: reporter-feedback
Focuses: Cc:

Description

Hi Guys,

I was already having an alert validation in my Gravity form using JQuery JS, It really works before on the past/previous, but after I update my wordpress version it's no longer working. The Alert is showing up and working fine but after all is good the form will no longer submit it seems it's freeze.

This code is a sample JQuery I use on my Gravity Form:

// JavaScript Document 

jQuery(document).ready(function(){   
  
   jQuery("#gform_submit_button_2").click(function(){  
 	var email = jQuery("#input_2_1").val(); 
  	if(email == '') { alert('Email Address is Empty.'); return false; }
    }); 
  }); 

Again that code is working before and the Gravity Form was really submit after all validation is good, Hope you can find a solution for this Guys.

Thanks

Change History (2)

#1 @SergeyBiryukov
9 months ago

  • Keywords reporter-feedback added

Hi @emantoyaks, welcome to WordPress Trac! Thanks for the report.

Have you reported this to Gravity Forms support? The code sample you've provided is just basic jQuery code, I don't see why a WordPress update would break it.

#2 @emantoyaks
9 months ago

Hello Sergey,

I'm not sure because my gravity form is not yet update. I think it's on the JQuery part?

Thanks

Note: See TracTickets for help on using tickets.