• Dear Miyoshi-san

    if a field that is initially tagged as ‘required’ but is dynamically disabled using javascript (and therefore not submitted in the $_POST action), the scripts.js still flags it as invalid.

    To correct this bug, I suggest the following check added to scripts.js at line 247.

    
    if($( '.wpcf7-form-control', this ).is(':disabled')){
      return;
    }
    
Viewing 1 replies (of 1 total)
  • Thread Starter Aurovrata Venet

    (@aurovrata)

    Similarly, the modules/<tag>.php files are setting empty values for fields which have not been submitted !isset($_POST[<fieldname>]). Instead the validation function should simply return if the field was not submitted by the form.

    Is there a reason why you force these required fields to have an empty value if they are not submitted?

Viewing 1 replies (of 1 total)
  • The topic ‘BUG: javascript disabled fields flagged as invalid.’ is closed to new replies.