Friday, October 14, 2011

Removing images from ImageFields using JavaScript

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;

1 comment:

  1. [...] Original article at http://michaelsteward.com/2011/10/14/removing-images-from-imagefields-using-javascript/. ADEP designer forms LiveCycle PDF tip [...]

    ReplyDelete