• Resolved budasy

    (@budasy)


    When using the Conditional Fields plugin and the Smart Grid-layout plugin the conditional fields rule sets are only saved when the rule sets are displayed in text-mode.

    No rule set changes are saved when the conditional fields tab is displaying the rule set input form.

    Although this issue only arises when both plugins are active I’m posting here so that Conditional Fields users can see that there is a simple workaround. Also, because it may be that the conflict is most easily resolved by changes to the Conditional Fields plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • so I traced the error to this admin script, wp-content/plugins/cf7-conditional-fields/js/scripts_admin.js, line 376 binds

    wpcf7cf.$formEditorForm.on('submit', function() {
        if (wpcf7cf.currentMode == 'normal' && wpcf7cf.getnumberOfFieldEntries() > 0) {
            wpcf7cf.copyFieldsToText();
        }
    });

    onto the $formEditorForm which does not exist in the SMart grid editor (it uses the WP core edit.php file instead of the custom cf7 admin.php page).

    on line 17

    wpcf7cf.$formEditorForm = jQuery('#wpcf7-admin-form-element').eq(0);

    a possible fix would be an extra line,

    if(jQuery('#cf7sg-editor').length>0) wpcf7cf.$formEditorForm = jQuery('form#post').eq(0);

    Plugin Author Jules Colle

    (@jules-colle)

    Thanks for reporting @budasy and thanks for the solution @aurovrata. I’ll include it in the next update.

    sooper!

    Thread Starter budasy

    (@budasy)

    Great. looking forward to the update

    @jules-colle i do not know but your plugin tabs in my website are looking like this
    https://twitter.com/BnDwipa/status/1346312149627334657

    Plugin Author Jules Colle

    (@jules-colle)

    looks like a javascript error. could you check the developer console for errors?

    ps: could you please create a new topic for your question?

    • This reply was modified 3 years, 10 months ago by Jules Colle.
    Plugin Author Jules Colle

    (@jules-colle)

    This should be fixed now. Although I haven’t tested.
    @aurovrata, @budasy could you confirm that it works with the last update?

    works like a charm. Much appreciated ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Rule Sets only saving when in Text Mode’ is closed to new replies.