HowTo correctly render fields on templates

trupal218 - October 29, 2009 - 16:34
Project:Conditional Fields
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Hello Everyone,

I was wondering if someone could assist me in how to render fields on profile-node-form.tpl.php for conditional fields to work properly.

I tested on Garland theme and the controlled field hides and shows accordingly to the controlling field (works great!)
But on my custom theme I render field in my template file like below:

<?php
print drupal_render($form['field_example']['value']);
?>

// more fields
<?php
print drupal_render($form);
?>

..and conditional fields seems to not be working at all.

I would really appreciate your help!
This is a great module and I would really like to use it on my website =)

Thanks!

#1

peterpoe - November 28, 2009 - 01:34
Status:active» duplicate

Looks like a duplicate of this: #625930: custom theme template.php assigning node-form.tpl.php breaks conditional fields.

 
 

Drupal is a registered trademark of Dries Buytaert.