Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
26 Dec 2009 at 00:53 UTC
Updated:
7 Jun 2016 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
casey commentedYou can set IDs:
Comment #2
sunSame applies to radios and checkboxes.
I hope that attached patch fixes all 3 in 1 shot. At least, I can confirm radios.
Comment #3
rburgundy commentedHello,
I was wondering if the new FAPI: JavaScript States system will allow:
1) hiding a field depending on the value of field a AND field b
2) hiding a field depending on the value of field a OR field b
Thank you
Comment #4
andrewmacpherson commentedtagging
Comment #5
sunWhat's wrong with this patch? RTBC, anyone?
Comment #6
sunComment #7
moshe weitzman commentedthis fills a pretty big hole in form element theming. now supports custom attributes and ids. important for skinr as well. Code looks proper and straightforward.
Comment #8
marcingy commentedI can confirm this works for checkboxes as well.
Comment #9
dries commentedCommitted to CVS HEAD. Thanks.
Comment #10
marcingy commentedJust did a CSV up and this doesn't appear to have been committed and no commit exists in the logs for it either.
Comment #11
dries commentedCommitted to CVS HEAD. Thanks.
Comment #14
mattew commentedSorry, maybe I misunderstood, but I encountered the same issue, trying to hide a fieldset (collapsible = TRUE, collapsed = FALSE) with a checkbox, and I found the solution: The fieldset have to explicitly provide an #id attribute.
Maybe this should be pointed out in the documentation?
Thanks