9 Replies Latest reply on Mar 3, 2017 8:26 AM by joanne721

    Clear/reset individual image fields

    joanne721

      Hi,

       

      I'm new to javascript so please excuse me. I am trying to clear image fields on a document. Currently, the user can include an image but if they want to change it they can only replace it, they can't delete it.

       

      I have tried three scripts below -- in both the image properties box and in a separate button --- and nothing words. I can get the scripts to clear text fields but not the image fields.

       

      1.

      if (xfa.event.shift)

      {

      this.rawValue = null;

      }

       

      2,

      if {this.resetForm(["imageField1"]);}

       

      3.

      ImageField.rawValue = null;

       

      Can anyone tell me what I'm doing wrong?

       

      Thanks for any help.

       

      Joanne