WordPress.org

Forums

Contact Form 7 Dynamic Text Extension
[resolved] Changes plugin dynamichidden* with contact form 7 - Version 3.7.x (5 posts)

  1. RVOLA
    Member
    Posted 1 year ago #

    The new version of Contact Form 7 - 3.7.x to modify the behavior of the class.

    Contact form 7 - 3.6: /contact-form-7/includes/classes.php
    line 900 (return $wpcf7_contact_form)
    Contact form 7 - 3.7 : /contact-form-7/includes/classes.php
    line 972 (return $current)

    The plugin uses functions calling global $wpcf7_contact_form in Contact Form 7 Dynamic Text Extension line: 58,151,232

    In my case, the dynamic fields with obligations does not work, because repressed line 151 makes reference to $wpcf7_contact_form empty.

    Please correct the file at line 58,151,232 replacing this:

    global $wpcf7_contact_form;

    by:

    $wpcf7_contact_form = WPCF7_ContactForm::get_current();

    https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/

  2. Sjourney
    Member
    Posted 1 year ago #

    @RVOLA Thanks very much for this..How did this fix your issue?

  3. RVOLA
    Member
    Posted 1 year ago #

    I can now use hidden fields required with version 7 contact form 3.7.X.
    I would like the developer and push the integrated version

  4. sevenspark
    Member
    Plugin Author

    Posted 1 year ago #

    Hi RVOLA,

    Thanks very much for the detailed report. I've just pushed an updated with your suggested changes. Please let me know if that does the trick :)

    Thanks!

    Chris

  5. RVOLA
    Member
    Posted 1 year ago #

    thks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7 Dynamic Text Extension
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic