Using javascript to lock down a field in EditForm.aspx

I've seen a variety of ways to hide columns in EditForm.aspx and DispForm.aspx using javascript, but not any way to display all columns while making some fields uneditable.

I know that there are ways to do this using the content type to hide a field, but I really need it to show.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zephyr_hex (Megan)DeveloperCommented:
ummm... why not change the field type to Label ?  you can do this using sharepoint designer.
TEEDAAuthor Commented:
When I open DispForm.aspx or EditForm.aspx, I just get a generic 3 column view - the actual fields aren't displayed, so I can't "get" at them to do anything with them. Anytime I edit either of these forms by adding a dataview which does show the fields, it breaks the attachment capability, which is critical. I'd heard there was an infrastructure update that would fix that and our Admin did apply it, but no dice.  
zephyr_hex (Megan)DeveloperCommented:
that's not a problem or something to be fixed... it's the way sharepoint pages initially appear in sharepoint designer.  there is a specific process for customizing those pages.
TEEDAAuthor Commented:
I've done that several times - hidden the original web part and inserted a custom list form, but it always disables the ability to attach a file. That probably isnt a big deal in some circumstances, but it's a deal breaker in this one, I'm afraid.
zephyr_hex (Megan)DeveloperCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.