Lock unit cost in ROG

Have a need to lock the unit cost field in ROG, but unable to do so in custom office. Is there another way around this? Maybe a script?

Looking for functionality just like this post: www5.v1ideas.com/.../40042