In my DetailsView (on a module i've develope), I have a checkbox who have 2 events (check or not)
How is it possible to disable EDIT button (on DetailsView) if checkbox is checked.

When the checkbox is checked, i want to lock the record.

Is there a way to lock a record in the DB (with parameter) or disable EDIT Button ?

Thanks

--
Sugar Version : Sugar PRO 5.2.0c
BD MySQL