• Hello,
    Since the latest update, dropping any type of attachment in a file upload field creates a javascript error.

    The problem seems to be due to a missing html element that should have the id “frm_verify_” + formID, which breaks the following function :

    
    function isHoneypotSpam(formID) {
       var val = document.getElementById("frm_verify_" + formID).value;
        return val !== ""
    }

    2021-01-05-09-04-25

    2021-01-05-09-04-45

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Steph Wells

    (@sswells)

    Hi Nicolas,
    We released an update for this before you reported it actually. Once you update to v4.09.04 the issue will be resolved.

    In the future, please contact us directly for issues with the premium version. We aren’t allowed to provide support for the premium plugins here.

    Thanks!

    Thread Starter presscustomizr

    (@nikeo)

    OK great.
    Yes, I realized afterwards that it was related to the pro version. I’ll report differently next time.

    Plugin Author Steph Wells

    (@sswells)

    Thank you!

    The solution is replace the funtion isHoneypotSpam for

    function isHoneypotSpam( formID ) {
    		var honeypotField = document.getElementById( 'frm_email_' + formID );
    		if ( honeypotField === null ) {
    			honeypotField = document.getElementById( 'frm_verify_' + formID );
    		}
    		return honeypotField !== null && honeypotField.value !== '';
    	}

    at formidablepro.js and formidablepro.min.js

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[urgent] javascript breaks when dropping any attachment in a file upload field’ is closed to new replies.