• Resolved atelierdevs

    (@atelierdevs)


    The recent addition of enum validation in version 5.9 has broken a couple of fields (dropdown and checkboxes) that are added dynamically through javascript. I’m getting the validation error ‘Undefined value was submitted through this field’.

    I’ve reverted to a previous version for now, but how do I disable enum validation for the plugin/specific fields?

Viewing 7 replies - 16 through 22 (of 22 total)
  • @noche70 To make sure that you are not calling remove_action before CF7 calls add_action you can add this code:

    add_action( 'init', function() {
        remove_action( 'wpcf7_swv_create_schema', 'wpcf7_swv_add_select_enum_rules', 20, 2 );
    });

    Still getting this error. I populate the select with custom posttype taxonomy. inserting the “remove_action”, disabling the action in selection.php does not work for me.

    any suggestions?

    tobyw7

    (@tobyw7)

    I am also seeing the same problem with Twenty Twenty Three theme, but this theme doesn’t have a functions.php.
    I’ve got other sites using different themes and dropdowns that aren’t impacted though.

    • This reply was modified 3 months ago by tobyw7.

    I cannot figure out where to put this code in functions.php:

    add_action( ‘init’, function() {
    remove_action( ‘wpcf7_swv_create_schema’, ‘wpcf7_swv_add_select_enum_rules’, 20, 2 );
    });

    I tried to put it where I find other “add_action”, but with no luck. Also tried to put it at the end of the file, no luck.

    Right now I have older versions installed to make the dynimic fields work. But that is of course not optimal.

    Para resolver esse erro, você deve escrever a fun??o
    remove_action( ‘wpcf7_swv_create_schema’, ‘wpcf7_swv_add_select_enum_rules’, 20, 2 );
    No arquivo ‘wp-content\plugins\contact-form-7\modules\select.php’
    abaixo de:
    add_action(

        ‘wpcf7_swv_create_schema’,

        ‘wpcf7_swv_add_select_enum_rules’,

        20, 2

    );

    Why does this thread has a “Resolved” Flag?

    Dear authors please give an advice how to solve this issue.

    Putting this “remove_action” thingy anywhere in the functions.php does not solve anything for me.

    Trying to update my contact form since month. Always have to rollback because the form is broken.

    Hi

    I would like to know if the latest PRO version 2.5 solves this issue?
    Don′t want to buy PRO before I know.
    Still have the free version, and the latest version of the plugin does not solve the problem.

Viewing 7 replies - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.