Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

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

tarekahf
Level 8
Level 8

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: " + imgFld.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.

Tarek.

0 Replies