WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Contact Form 7 Modules] Hidden fileld values cleared on successful submit

[Resolved] [Plugin: Contact Form 7 Modules] Hidden fileld values cleared on successful submit

  • Kurt
    Member

    @highfxmedia

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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?

    Kurt
    Member

    @highfxmedia

    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?

    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?

    Kurt
    Member

    @highfxmedia

    Efrem:

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

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Contact Form 7 Modules] Hidden fileld values cleared on successful submit’ is closed to new replies.