[Bese-devel] checkboxes
Waldo Rubinstein
waldo at trianet.net
Wed Dec 28 14:39:32 UTC 2005
Alex,
I learned this trick when using Ruby on Rails. Basically, you create
a hidden field of the same name as the checkbox AFTER the actual
input tag with a value for when the check box is off. This way, when
the form is submitted, the user did not select the check box you will
get the "off" value and if the user selected the check box, you will
receive the on value.
Feel free to read here:
http://api.rubyonrails.org/classes/ActionView/Helpers/
FormHelper.html#M000346
- Waldo
On Dec 28, 2005, at 8:21 AM, Aleksandar Bakic wrote:
> Hi,
>
> When a checkbox is off in a form, its value is not submitted as
> part of the
> http request. This means that the corresponding ucw callback is not
> called at
> all in this case. Has anyone found a nice solution to this problem
> in ucw?
>
> Thanks,
> Alex
>
>
>
> __________________________________________
> Yahoo! DSL – Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
More information about the bese-devel
mailing list