WordPress.org

Forums

Contact Form 7
[resolved] Checkbox - Email not recording (9 posts)

  1. lwyndham
    Member
    Posted 2 years ago #

    Since I updated to ver 3.5 I have a problem with checkboxes.

    They appear fine on the form, but the responses I get for just the checkboxes are not recorded in the email(i.e. blank) - everything else appears ok.

    However I am also using the 'Contact Form DB' plugin which shows the responses in the database.

    BTW the checkbox I am using is set as a required field.

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

  2. David
    Member
    Posted 2 years ago #

    I am also having the same issue.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    @Cuz74: As per the Forum Welcome, please post your own topic. Posting in an existing topic prevents us from being able to track issues by topic. Added to which, your problem - despite any similarity in symptoms - is likely to be completely different.

  4. lwyndham
    Member
    Posted 2 years ago #

    This has now been resolved thanks to philmcdonnell who suggested the following fix in the topic Checkboxes outputting "Array":

    Around line 599 look for:
    $submitted = trim( $submitted );

    Then just add the comment marks in front of it like so:
    //$submitted = trim( $submitted );

  5. lwyndham
    Member
    Posted 2 years ago #

    Sorry forgot to mention the file that you need to edit is /includes/classes.php

  6. David
    Member
    Posted 2 years ago #

    I am using version 3.5. I do not have that file.

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    @Cuz74: As per the Forum Welcome, please post your own topic.

  8. lwyndham
    Member
    Posted 2 years ago #

    @David

    I am also using version 3.5. The file to edit is /includes/classes.php and it is found in the Contact Form 7 plugin folder.

    Perhaps try using an FTP client to find and edit it.

  9. wissenskontor
    Member
    Posted 2 years ago #

    @lwyndham: Thanks! Worked!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.