Please read and refer to the Form API documentation. See #access attribute http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#access 


On Tue, Jan 11, 2011 at 6:52 AM, jayak kumar <jayakumarstudies@gmail.com> wrote:
Dear all,
I want to disable any fields under some conditions. i want to do either disable or make it invisible. Please help me giving some code for this.

Thank you.
jayakumar