WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Kurt
    Member
    Posted 2 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!

    Kurt

    http://wordpress.org/extend/plugins/contact-form-7-modules/

  2. EfremJ
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    http://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect?replies=15

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

  5. Kurt
    Member
    Posted 1 year ago #

    Efrem:

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

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic