WordPress.org

Support

Support » Plugins and Hacks » DB missing one form field on submit and one field not returning proper values

DB missing one form field on submit and one field not returning proper values

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Michael Simpson

    @msimpson

    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?

    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.

    Plugin Author Michael Simpson

    @msimpson

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

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

    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.

    Plugin Author Michael Simpson

    @msimpson

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘DB missing one form field on submit and one field not returning proper values’ is closed to new replies.