0
votes

Is there a way to render only the widget of a CCK field (e.g., series of checkboxes) using $form on a node add/edit form (via *.tpl.php) without going into the content type itself and hiding the label? I seem to be unable to render a series of checkboxes without the label showing up.

Thanks!

1

1 Answers

0
votes

Yes, in your template file for the content type's add/edit form, simply add something like:

<?php $form['field_FIELDNAME']['value']['#title'] = FALSE; ?>

or

<?php unset($form['field_FIELDNAME']['value']['#title']); ?>

replacing "FIELDNAME" with the name you chose when creating the field.