These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Resetting an Image Field

Chayter
Registered: Mar 24 2011
Posts: 8
Answered

Hello, I have a form with multiple image fields and I want to be able to reset each image field individually. I currently have a 'reset image' button below each image field. However, when I click the reset image button, it resets the entire form and not the specific image field. I have the following JavaScript for each button (obviously the Image name is different for each image field):
 
xfa.host.resetData("xfa.F.P1.Image");
 
Please help! I have spent hours and hours trying to figure it out. Thanks in advance.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Accepted Answer
Hi,

use
ImageField1.rawValue = null;

to clear the image field.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Chayter
Registered: Mar 24 2011
Posts: 8
Thank you very much!