WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Need hidden fields to write to Contact Form 7 database (1 post)

  1. Dana
    Member
    Posted 3 years ago #

    If this is not the correct place to post this query, my apologies and please advise where to redirect it.

    I have hidden fields in my submission form. The idea was that they were to translate to field data in the cells of the database. I have the following hidden fields.

    [hidden hidden-592 id:Date "_date"][hidden hidden-977 id:Time "_time"][hidden hidden-710 id:Posttitle "_post_title"][hidden hidden-711 id:Postauthorusername "_post_author"][hidden hidden-712 id:PostURL "_url"][hidden hidden-713 id:SenderIP "wpcf7.remote_ip"][hidden hidden-714 id:PostCategory "_site_category"]

    which translate to the following in the database, without actually including the values from those fields (but the output is in table format), data from two submissions

    hidden-592
    _date
    _date

    hidden-710
    _post_title
    _post_title

    So, effectively the hidden fields are being recognized but are unable to pull the data because the syntax for hidden fields requires removing the inner brackets.

    I'm not sure how to hide a field AND have it write the value to the database.

    Any thoughts?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic