• Resolved ProActive

    (@sholly2)


    As the title says, CF7 + conditional fields in a Webba Booking form are not working.

    This issue has occurred twice previously, the first time it was resolved by adding this js code:

    function wbk_init_conditional_fields(){
        jQuery('.wpcf7-form').each(function(){
        wpcf7cf_forms.push(new Wpcf7cfForm(jQuery(this)));
    });
    }

    The second time this code fixed it:

    function wbk_on_form_rendered( service ){
        wpcf7.initForm( jQuery( '#wbk-booking-form-container' ).find( '.wpcf7' ) );
        wpcf7cf.initForm( jQuery( '#wbk-booking-form-container' ).find( '.wpcf7' ) ); 
    }

    Your assistance would be much appreciated…

    WP 5.5
    PHP 7.4.9
    Webba Booking 3.8.52
    CF7 5.2.1
    CF7 Conditional Fields 1.9.9

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Conditional Fields Not Working’ is closed to new replies.