R – Sharepoint 2007 : How to disable TextBox

sharepointsharepoint-2007sharepoint-designer

I am new to sharepoint 2007. I have a following requirement.

1) I would to create a custom list for employee where they can select the item and fill-out the form and submit.

Example : List –> Hard Disk –> Click –> Create new list –>

List has following fields 1) EmpID 2) Customer name (Text) , 3) Order Date, 4) Qty 5) Price

Once user submit the list then I would like to disable the EMPID field and allow same user to edit the other fields if required.

How can I disable the text field (Empid) in the Sharepoint 2007 ? I would appreciate any other alternate or better idea.

Thanks,
Regards
Vick

Best Answer

I would use jQuery for this purpose. Here is an example that describes how to hide a text field on a SharePoint form. Change the .hide() to .attr('disabled','disabled') and this will disable the text field.

If you need help with deploying jQuery, see this question.

Related Topic