field read only

i want use a button in form for insert a code with can set specific field in read only?

See http://scriptcase.aducom.com/cms/e107_plugins/faq/faq.php?10.cat.6.15

It’s not quite suitable for your task yet, but I think it’s very helpful.