WordPress.org

Ready to get started?Download WordPress

Forums

Participants Database
[resolved] defaults for radio buttons? (3 posts)

  1. quartney
    Member
    Posted 1 year ago #

    Is it possible to set the default value for a radio button?
    I have an Admin field "new member", and I want each new signup to get a "yes" value. These "yes" records are then shown as New Participants at the bottom of this page:
    http://s410995807.onlinehome.us/participants/

    The problem is that the records aren't being created with the "new member" set to yes.

    Here is a screenshot of my Admin fields:
    http://i.imgur.com/C1Wlh.png

    Am I doing this right?
    Thanks!!!

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

  2. xnau
    Member
    Plugin Author

    Posted 1 year ago #

    quartney,

    OK, what's happening here is that the value of the checkbox is only being set if it's included in the form. This is not ideal...I'll have to fix this in the next update.

    Meanwhile, I would suggest adding the checkbox field to the signup form, then hide it with CSS. It will then save the default value into the database when the form is submitted.

  3. quartney
    Member
    Posted 1 year ago #

    great work-around. Thanks, xnau!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.