- Michael Steward

When adding an ImageField to a form it’s a common requirement to allow a user to remove the image.  By default clicking on the image field will only let the user replace it with another image.  If you want to remove it altogether then this little piece of code attached to a button will help:

imageField.rawValue = null;

 

——-
Original article at http://michaelsteward.com/2011/10/14/removing-images-from-imagefields-using-javascript/.