How to prevent Event from Running?

Using simple form and Document(FileName), how can i check if the delete Checkbox has been Checked to prevent an Event from running

Afaik you can’t. If the delete button is checked the file is deleted. That should be checked in your event I guess (fileexist)

Thanks! file_exist did not work but the idea behind that did. I was able to check for an empty field in the OnAfterUpdate event. Since delete checkbox triggers onUpdate and empties that field, I can then check in OnAfterUpdate event to look at that empty field, if it equals blank then do not run the script, else do.