• Hello

    Thanks for making such wonderful plugin. I have been using this plugin to store UNIQUE ID generated from function.php in the form and once submission successful, user received an email with a UNIQUE ID.

    The code I use in function.php as follow.
    [code]
    function genTicketString()
    {
    $length = 15;
    $characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    for ($p = 0; $p < $length; $p++)
    {
    $string .= $characters[mt_rand(0, strlen($characters)-1)];
    }
    return $string;
    }

    add_shortcode('quoteticket', 'genTicketString');
    [/code]

    and inside the contact form 7, i use it as below.

    [code]
    [dynamichidden dynamictext-857 id:ticket "quoteticket"]
    [/code]

    It used to work great. Every time when a page is loaded, a new ID is placed inside the dynamichidden field and when user submits, they get a Unique ID but once I started using WP Super Cache, this does not work anymore. It doesn’t generate a new Unique ID every time a page is loaded, instead, the same id is being passed to multiple users. Is there any way that I can get this working with WP Super Cache ? Any input would be much appreciated.

    BTW, those who want to have Unique ID for each contact form submission can use the above code so long as you do not use this together with WP Super Cache !

    https://www.ads-software.com/plugins/contact-form-7-dynamic-text-extension/

  • The topic ‘Run together with WP Super Cache and it doesn't work’ is closed to new replies.