Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

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