Download & Extend

HowTo correctly render fields on templates

Project:Conditional Fields
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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!

Comments

#1

Status:active» closed (duplicate)

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

nobody click here