By asmilk on
the CCK text field is display as a input text,and i want to set the input box readonly.
or hidden the input box?
the CCK text field is display as a input text,and i want to set the input box readonly.
or hidden the input box?
Comments
set the CCK text field readonly
Using jquery we can set the input box readonly or hidden
To make readonly, under jquery onready function directly write
$('#your_field_id').attr("disabled", true);
or for hidden :
$('#your_field_id').hide();
And using CSS also you can hide the input field or that div.
add css code display:none for the exact div
Want to be hide in node display also, means just click exclude on display fields
**above hint for readonly or hidden in node create/edit
if you want be hide only in node display time only means just click exclude on display fields
There's also the Content
There's also the Content Permissions module within CCK, which allows you to set field-level permissions.