Contact Form 7 Modules
[resolved] Hidden fileld values cleared on successful submit (5 posts)

  1. Kurt
    Posted 4 years ago #

    When the form is submitted successfully, the hidden field values are cleared. This means a second submission can't be sent with the correct values. My customer wants employees to submit multiple entries.

    It must be CF7 clearing the fields. Any way to stop this action on the hidden fields? Via a hook possibly?

    Thanks for the plugin and thanks in advance for any response!



  2. EfremJ
    Posted 3 years ago #

    Hi, Kurt.

    It is indeed CF7 clearing the field values on submit. I ran into this when trying to do a "conditional redirect" based on a radio button choice. I couldn't capture the radio button choice to direct the page after the form was submitted.

    I wound up having to have the CF7 developer create a custom add-on for me.

    I'm not sure how to address the issue you're running into however. Maybe have the values temporarily written to a file and then run a jQuery script to extract those values post-submit?

  3. Kurt
    Posted 3 years ago #

    Hi, Efrem.

    I believe I redirected a submission to a success page that included a "submit another" link. The form then included the correct hidden values.

    Any explanation as to why CF7 clears hidden field values?

  4. EfremJ
    Posted 3 years ago #

    I don't know, personally, why it clears the forms but I stumbled upon that info when looking at this post:


    My guess is either for security or to reduce the chance of a duplicate submission?

  5. Kurt
    Posted 3 years ago #


    There must be a reason. Security or duplicates would be my guess too.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7 Modules
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic