Closed (outdated)
Project:
Drupal core
Version:
6.12
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2008 at 22:12 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
robinmofo commentedI am having this trouble also, it works fine if I add just a text field both the label and textfield show... it's jsut for checkboxes the label appears but no checkboxes are present. I'm using the official AHAH guide from http://drupal.org/node/331941.
Would be nice to get someone's comment on this as I'm sure more people will want to know (and this is one of the search results from this forum) - I read another post /patch about not being able to put AHAH events to checkboxes, so I updated to 6.10 just in case but I'm still getting the same issue.
Any help please? (I've learnt so much myself about Drupal but I'm inclined to think this is a bug / expected functionality - if needs be I'll be adding my own checkboxes patch for this - but would like to get someone else's comments first)
Comment #2
robinmofo commentedHi,
I was just about to raise a new issue. so I'll quickly update this post.
I got around the "checkboxes" issue by creating a function that returned an array of "checkbox" type (not checkboxES) and it works perfectly (in fact it was a good way to split my shown and hidden checkboxes fieldsets which are based on admin settings for the module)
Comment #3
sam.clayton@gmail.com commentedI'm seeing this same issue on 6.12. Label and description are shown, but no actual checkboxes. Returning text-field form elements from the same callback works fine.
Is this an issue with drupal_render?
Comment #4
cntlscrut commentedI, too have been having the same issue. In my tests I have found that the only FAPI types that do not render properly are "radios" and "checkboxes".
I read above about creating am array of checkbox types, but for my current project that is not a feasable solution.
Comment #5
maxB commentedI'm having the same problem with inserting a checkboxes form-element with a ahah-callback.
I thought about the mentioned array solution before. But I just wanted to search for a perfect solution. Actually there's no bug fix available for this - and I'm just not that into the whole AHAH topic so that I could search for the bug and fix it. Therefore I'm waiting for a clever person that knows how to handle that one!
Comment #6
darrick commentedI called the form_builder function before rendering the checkboxes:
http://api.drupal.org/api/drupal/includes--form.inc/function/form_builder/6