How do I make a feild visibel to users, but they are not allowed to add data, but a ecma scrit is allowed to add data on a event

Regards

Niels Olsen