You need to change the access to "readOnly."
Let's say your field is called "EnterText." It would look something like this:
EnterText.access = "readOnly";
Then, to open it again, make it
EnterText.access = "open";
I would put the script in either the "change" or "exit" event. Hope that helps!