Some properties of Image Field under HTML5 cannot be accessed using JavaScript.



I am trying to access the Image Field "contentType" property in Adobe LiveCycle Designer XFA form using JavaScript. If the form is rendered using "Preview PDF" the script works. However, if the form is rendered using "Preview HTML5" , the script doesn't work at all.

Here is the script I am using:

app.alert("Content Type of the Image Field: " + imgFld.value.image.contentType);

Note that if I use other script such as:

app.alert("Image Field Name: " +;

The above script works in "Preview PDF" and "Preview HTML5". Meaning that the server is configured to work with HTML5 forms by setting the server options under Tools->options.


Accepted Solutions (0)

Answers (0)