WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Contact Form 7] default value for unchecked checkbox (2 posts)

  1. andrelost
    Member
    Posted 2 years ago #

    Hello everybody,

    I'm using a checkbof with Contact Form 7.
    This is the structure of the checkbox:
    [checkbox nwslttr label-first default:2 "subscribe me|yes"]

    And this is the call in the e-mail configuration:
    Subscribe [name] to newsletter: [nwslttr]

    If [name] has checked the checkbox, e-mail text result:
    Subscribe John to newsletter: yes
    but, if checkbox is not checked, text results:
    Subscribe John to newsletter: [nwslttr]

    Is there a way to define a default value (for example "no") for a checkbox not checked?

    thanks in advance

  2. andrelost
    Member
    Posted 2 years ago #

    pardon,
    the checkbox structure has default:1

    [checkbox nwslttr label-first default:1 "subscribe me|yes"]

Topic Closed

This topic has been closed to new replies.

About this Topic