Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter armandcarac

    (@armandcarac)

    In case anyone stumbles upon this, here are my findings regarding this issue.

    It is actually part of HTML specifications that checkboxes and radio buttons should only be sent to the server when they are “on”.
    Here is a good post about it: https://stackoverflow.com/questions/11424037/do-checkbox-inputs-only-post-data-if-theyre-checked
    It seems to be the same for Select elements even though I can’t find the html specification for it.

    So compliant browsers will not send the empty checkbox, radio, and even select as part of the formdata posted.
    This is probably why CF7 is in turn unable to return these fields with the wpcf7mailsent event – It simply doesn’t receive it in the first place.

    To return all the fields, even empty checkboxes and radio buttons, CF7 would need to do some fancy checks with the original form to detect if it received all the fields or not.

    Bottom line is I don’t think this is a bug from CF7, which is just using the formdata sent by the browsers.
    But this also means that you shouldn’t rely on the wpcf7mailsent details to give you the full list of fields for the form that was just submitted.

    I hope this helps someone.

    Armand.

    Thread Starter armandcarac

    (@armandcarac)

    Hi,

    Just circling back here in case the information is useful to anyone else.
    In our case, Google sheet connector was actually not the main culprit of the slow contact form submission.

    Google sheet connector does add some time to the submission, approximately 1-3 seconds because it calls the Google Apis.

    But it is another plugin that was adding a significant amount of time to the submission: Flamingo. Flamingo is a plugin to save contact form 7 submissions to the database.
    At the time of the issue at least, this plugin had 2 problems.
    – Performing inefficient checks, going through all posts of the website while submitting a form.
    – Saving spam attempts to the database, even though they were blocked by the new Recaptcha v3.

    To solve the issue we had to remove all spam messages from the database (sometimes tens of thousands), and amend the code of flamingo a little to prevent it from saving rejected submissions to the database.
    We also cleaned posts by removing old revisions and orphaned meta, to make the database leaner, considering flammingo is doing some inefficient checks.

    Links:
    – Inefficient checks report: https://wordpress.org/support/topic/extremely-slow-logging-in-inbound-message-save/
    – Prevent flamingo from saving rejected submissions: https://wordpress.org/support/topic/disabled-javascript-submission-with-recaptcha/

    Hopefully, this will help someone.
    Armand.

    Quick update on this as I found a work around that seems to work for now.

    The checkbox can be ticked when configured a certain way in contact form 7.

    The option “Wrap each item with label element” must be ticked when using the Form-tag generator of CF7.
    This is equivalent to adding “use_label_element” to the field

    Example: [checkbox checkbox-606 use_label_element]

    I could get it to work with this.
    It would be nice if the divi styler could accommodate for the different configurations.

    Thanks,
    Armand.

    • This reply was modified 6 years, 10 months ago by armandcarac.

    Hi,

    We love the plugin, it is definitely helping us a lot to style the forms.

    I have the same problem as mentioned above, we can’t see when a checkbox is ticked or not.

    Has a solution been found in the meantime?

    Thanks,
    Armand.

Viewing 4 replies - 1 through 4 (of 4 total)