Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

Avatar

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