WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
DB missing one form field on submit and one field not returning proper values (7 posts)

  1. gnarlyinc
    Member
    Posted 1 year ago #

    I have an long membership application form on a clients site. One of the form fields isn't saving to the database. FYI it is a radio select field.

    Another form also a radio select field with four options is only returning 'no' as the option selected, which is not one of the available options.

    http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/

  2. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    There can be a difference between the value displayed on the page and the value posted on form submission. If the field isn't defined with a value for submission, then it might not be saved. Or if the field has a value set to "no" that is what you would get regardless of what the display value is.

    What plugin are you using to create the form?

  3. gnarlyinc
    Member
    Posted 1 year ago #

    I'm using the latest version of Fast Secure Contact Forms.

    The extra field not getting saved at all is:
    Label: French Immersion Teacher, Yes; No
    Field Type: Radio

    The extra field saving the submission as "no" is:
    MPETA Membership Options, Full ($25); Student ($15); Associate/Institutional ($15); Retired ($15)
    Field Type: Radio

    I checked the outputted html and a value is set for ex:

    <span style="white-space:nowrap;"><input type="radio" style="width:13px;" id="si_contact_ex_field2_20_4" name="si_contact_ex_field20" value="Retired ($15)"> <label style="display:inline;" for="si_contact_ex_field2_20_4">Retired ($15)</label></span>

    Two other radio options are saved with no problem.

  4. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    Do you get correct values in the email you get from the submission?

  5. gnarlyinc
    Member
    Posted 1 year ago #

    Yes both are showing up correctly in the email submission and in the database table.

  6. gnarlyinc
    Member
    Posted 1 year ago #

    I tried to create a new form, and transfer the data over in MYSQL to see what would happen. Now the two original probem fields are saving correctly, but it is failing to save the submission from 2 other fields.

  7. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    That is really weird. I would expect all or nothing, and consistency. I can't think of what would cause that.

    If you want to venture into coding a filter to output at the data coming into the plugin, look at this page at the bottom, "Debug" section, the "log_form_submissions" function. From there we might see if the plugin is getting the data right from FSCF and if it is organized as expected.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.