Change cck field to '#type'='hidden'?
coopdrup - September 18, 2009 - 16:00
| Project: | Node Form Template |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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!

#1
+1
Subscribing :)