#145 √ resolved
Bryan Ray

When submitting a form that has checkbox_control ... result is always a "0" value

Reported by Bryan Ray | August 17th, 2008 @ 02:13 AM

checkbox_control :is_searchable, :label => "Allow other #{SITE_NAME} members to search for me and view me on the members page?"

Renders this:

Send me weekly motivator reports?

When this form is submitted. I will always receive a "0" value (unchecked) ... regardless if the box is checked or not.

{ "user" => { "is_searchable" => "0" } }

I can solve this by simply reversing the order of the hidden checkbox field. Like so:

Send me weekly motivator reports?

I've attached a simple fix that appears to do the trick by just reversing the order of the checkbox and the hidden field.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket