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

Block a form depending on XFA version

Avatar

Level 2

Hi all,

I'm authoring a form with scripts supported only from XFA 3.0/Acrobat 9.1

(see http://blogs.adobe.com/formfeed/2009/03/xfa_30_list_of_invalid_fields.html for details).

I would like to alert the user if he/she opens the form with an older version, then I want the form is freezed and not printable.


How can I do?

Thank you,

Fabio

2 Replies

Avatar

Level 10

You can get the version of the host by using "xfa.host.version" command.

You can freeze (mean you can make the form non editable) but may be you can not stop the user to Print the form.

You can make the form readonly by making the access property of the top most subform to "readOnly".

Other approach you can consider is if the version does not match then display a messagebox to the user to download a newer version and close the app by using "app.execMenuItem("Close");" command.

Thanks

Srini

Avatar

Level 10

Here's a link to a thread with a pdf sample I made that shows how to do version plus javascript checks:

http://forums.adobe.com/message/2293859#2293859