WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#41656 closed defect (bug) (invalid)

Bugs for Gravity Form Validation using JQuery!

Reported by: emantoyaks Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.1
Component: Plugins Keywords:
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 (3)

#1 @SergeyBiryukov
4 years 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
4 years ago

Hello Sergey,

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

Thanks

#3 @chriscct7
3 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Not an issue with WordPress Core

Note: See TracTickets for help on using tickets.