HowTo correctly render fields on templates
trupal218 - November 2, 2009 - 05:52
| Project: | Dependent Fields |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hello Everyone,
I was wondering if someone could assist me in how to render fields on profile-node-form.tpl.php for dependent fields to work properly. (note: using content profile, cck)
I tested on Garland theme and the field hides and shows (works great!)
But on a custom theme I render field in my template file like below:
<?php
print drupal_render($form['field_example']['value']);
// more fields
print drupal_render($form);
?>..and dependent fields seems to catch (the fields wont hide)
(note: i am experiencing the same issue with conditional fields with a new template)
I would really appreciate your help!
This is a great module and I would really like to use it on my website =)
Thanks!
