WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
[resolved] Required checkbox (5 posts)

  1. franc3s
    Member
    Posted 1 year ago #

    Hi Xnau,
    I have a problem:

    I've a sign up form with a required checkbox. Even if I check it, the page replies me that that option must be accepted.
    See how I have setted the field: https://dl.dropbox.com/u/15640899/privacy.PNG

    Am I mistaken something?

    http://wordpress.org/extend/plugins/participants-database/

  2. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    A checkbox requires one or two values in the "value" field. If you have one, it only saves a value if the field is checked, if you have two, it saves the first value if it is unchecked, the second if it is checked.

  3. franc3s
    Member
    Posted 1 year ago #

    Thank you, now my privacy required field is ok. But I don't understand how to format a non required checkbox field.

    I have a question: do you want to be part of a thing? that is a checkbox. I have added two values, the first is no, the second is yes. So if I have understood what you are telling me I should have a non checked box in my admin panel if the box isn't checked, and a checked field is the user select it. But it only works if the user do not check the field. Can you help me again?

  4. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    franc3s,

    Your checkbox should have No, Yes in the "values" field. There has to be a comma separating the values.

    For a checkbox to be non-required, you just set the "validation" to "Not Required" no?

  5. franc3s
    Member
    Posted 1 year ago #

    Ok it's working! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.