There is an optional method within the UserJavaScript.js file named userJavaScriptDeleteBtn(). When this method is present you can return true or false to allow ExtraView to perform additional processing when the Delete button is pressed on the edit screen. If this processing returns true, then the delete function continues, but if it returns false, then the delete operation is halted. Typically you will present the user with a message to indicate the error that you want them to correct. The optional message is handled by the method userJavaScriptDeleteMessage().
The default code for the method within the UserJavaScript.js file is:
function userJavaScriptDeleteBtn() { return true; }
If the method is not present, no error is generated.