You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SimpleForm
Hi,
I am on a page that renders forms for a number of account models.
Each account has a boolean column called 'active'.
So there are multiple checkboxes and their label all have the same
"for" attribute which means clicking the label is only going to check
the first checkbox instead of the corresponding input next to the
label.
My question is what would you recommend such that clicking the label
will tick the expected checkbox input?
Thanks,
Andy
Carlos Antonio
unread,
Jun 23, 2011, 9:28:57 AM6/23/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plataformate...@googlegroups.com
This probably means that all your checkboxes have the same id. Check you html output to see that.
What you can do is add a default for/id to your label/input by setting the :id in the input_html option, like this: