Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    The latest release mistakenly broke the security JS validation. However, there is a PHP check for the same thing (two digits), so an email with more than three digits will still fail silently.

    A temporary solution is to open the visual-form-builder-validate.js file and overwrite all lines with the following code:

    jQuery(document).ready(function($) {
    	$( '.visual-form-builder' ).validate({
    		rules: {
    			"vfb-secret":{
    				maxlength:2
    			}
    		},
    		errorPlacement: function(error, element) {
    			if ( element.is( ':radio' ) || element.is( ':checkbox' ) ) {
    				error.appendTo( element.parent().parent() );
    			}
    			else {
    				error.insertAfter( element );
    			}
    		}
    	});
    
    	/* Display jQuery UI date picker */
    	$( '.vfb-date-picker' ).datepicker();
    });

    Thread Starter FixMiller

    (@fixmiller)

    Thanks Matthew, works perfectly.

    Applied this fix, also. Works great!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Visual Form Builder] Form Verfication Issue’ is closed to new replies.