• Resolved alkemiko

    (@alkemiko)


    Hi,
    version 1.73 installed.
    If I save the form in the “Conditional Field” tab, all the contents are deleted / reset.

    An help?

    Regards

    • This topic was modified 5 years, 1 month ago by alkemiko.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Most likely there’s a javascript error in your wp-admin. Could you check the console for errors?

    Thread Starter alkemiko

    (@alkemiko)

    Hi,

    I think it’s due to incompatibility with one of the following plugins: Contact Form 7 – Dynamic Text Extension; or CF7 Smart Grid Design Extension. I’ll do tests tomorrow and I’ll let you know. Thanks

    Thread Starter alkemiko

    (@alkemiko)

    Hi,
    I confirm that it is an incompatibility with the CF7 Smart Grid Design Extension plugin.

    Regards

    Hi @jules-colle

    your update setups the conditional fields before the form submission using ‘submit.wpcf7cf’ event on the custom cf7 admin page form as follows,

    
    $('#wpcf7-admin-form-element').on('submit.wpcf7cf', function() {
                update_settings_textarea();
                return true;
            });
    

    My plugin, the CF7 Smart Grid, strives to more CF7 back into the WP core standard and as such does away with the custom cf7 admin page, using instead WP core posts.php (wpcf7_contact_form post type edit page) to handle the form editor. WP core uses form#post as the id, instead of form#wpcf7-admin-form-element used in the custom cf7 page.

    A simple fix to the above issue is to change your event handling to also capture the #post element event as,

    
    $('#wpcf7-admin-form-element, #post').on('submit.wpcf7cf', function() {
                update_settings_textarea();
                return true;
            });
    

    would you consider making this small change? If you have a GitHub repo for your plugin, I can do a PR to make it easier.

    Plugin Author Jules Colle

    (@jules-colle)

    @aurovrata @alkemiko Fixed in version 1.7.6

    Thanks Jules! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem on save form when the active tabs are not “conditional form”’ is closed to new replies.