Help > Learning Resources > Tips for creating PDFs > Supported scripting in Acro Forms

Supported scripting in Acro Forms

1. HTTP replies for submit actions

Fluix presents HTTP replies with Content-Type “text/plain” and “text/ html” to the user. For other content  types the “Form successfully submitted.” is shown. 

2. Objects scriptable in Fluix

field Object



event Object


doc Object



app Object


util Object


3. Custom JS API


flx_CopyPage(nSourcePage, nPage)

Copies a source page and inserts it into a document after specified page index. Defined on a document level.

This function represents a simplified routine of manually copying & pasting a single page via page manager in Fluix iOS app (available since app v. 2.36).


Return Value: The function returns boolean result of the operation

Side effect: Function may display alerts using standard app.alert() PDF JavaScript method (NOTE: The function fails silently in case invalid page indices are passed as arguments)

4. Workflow JS API


This property can be used to pre-fill/get User full name, User Group(s) and Company name

The property app.fluixUser contains the following keys:

  1. fullName — user full name in Fluix
  2. companyName — company name in Fluix
  3. groups — the array of groups (strings)


This is a special function fluixShouldSubmit(submitRuleName) which should be defined on a document level.

Fluix calls this function upon document submit on device of User App (e.g. to validate the fields, user groups, etc.)

Argument: The only function argument is a string, the name of submit rule from admin portal

Return Value: The function should return boolean true when submit is allowed or false if not.

Side effect: Function may display alerts using standard app.alert() PDF JavaScript method. Alerts may contain Yes / No buttons that could allow PDF author to display non-fatal warning.

Was this article helpful?
Thanks for your feedback!
Oops, something went wrong. Please, try again later.
We're sorry about that, please contact our support for help.
1 out of 1 found this helpful

Sign Up to Our Product Newsletter

The latest updates from our Product team, straight
to your inbox

Before using our website, please read our Privacy Notice for Fluix Website.


We use necessary pixels to ensure that all windows, pop-ups or similar components are displayed properly. This technology is stored on your devices and we do not have any access to it or store.

We use necessary cookies that help us make a website usable by enabling basic functions like page navigation and access to secure website areas. The website cannot function properly without these cookies.

We use statistics cookies that help us to collect information on how you use our website. These cookies collect information in a way that does not directly identify anyone.

We use marketing cookies that help display relevant ads for individual users, thereby more valuable for publishers and third-party advertisers.

We use analytics cookies to track website visitors and their user behaviour. This data is then used to improve the way the website works and in turn, used to improve user experience.

Please enter your business email to download this file