I have a container field on my layout with script trigger OnObjectModify.
Allow User Abort [ Off ]
Set Error Capture [ On ]
Set Variable [ $status; Value:STATUS ]
If [ $status = 1 ]
Revert Record/Request [ No dialog ]
Show Custom Dialog [ ... ]
So it should revert record when i want edit it and don't allow me to edit it, upload image into container or delete it.
This script works very good with simple text fields, but containers.