Lock fields in form

Hi All,

Can anyone tell me how to lock fields in form?

I want lock the UnitPrice field in Serviceorder Line base on some condition when selecting the item in the service order line...

Please suggest the possibilities I have tried this link but no luck.


Thanks in advance...