By vivekkhurana on
I have installed webform module. As suggested in webform theming.txt I creates a webform-form-[node-id].tpl.php. Drupal renders the content in the tpl file and drupal_render($form) is rendering the whole form but drupal_render($form['submitted']) or drupal_render($form['submitted']['first_name']) or any other field is not rendering. Do I need to do anything special to render the individual fields ?
Comments
If you're rendering $form
If you're rendering $form first, all of the sub-elements will be ignored by future render calls, since they have all ready been processed. So, the easy thing to do is to install the devel module, and in your .tpl.php, do something like this:
If you put the last line first, you'll notice nothing happens in the subsequent calls.
HTH,
--Andrew