Active
Project:
Node Form Template
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2009 at 16:00 UTC
Updated:
11 Apr 2012 at 19:08 UTC
Hi! I'd like to dynamically hide a CCK textarea field, based on some logic around user permissions and arguments passed into the edit form.
Here what I'm trying this in node-form.tpl.php:
$form['field_note'][0]['#type'] = 'hidden';
...But the textarea is still returned as part of $standard, and also in $field_note.
Any suggestions or advice would be great appreciated -- thanks in advance!
Comments
Comment #1
Rosamunda commented+1
Subscribing :)
Comment #2
MissterX commentedNo, it did not take me 3 years to find the answer. The reason is I noticed your question a moment ago. Anyway, have you tried with:
If you would like to have it a value, add this row: