Calculate button

A button can be used to execute a calculation operation. When a user clicks a button, the Forms service executes a calculation script located in the form design. The result is rendered back to the web browser with the results displayed in the form. (See Calculating form data).

This table summarizes the interaction between a client application and the Forms service when a user initiates a calculation operation.

User actions

Client application actions

Forms service actions

A user clicks a button that is located on a form.

If the button’s Click event is marked run on client, the form is not submitted to the Forms service. The script is executed in a web browser, Acrobat, or Adobe Reader.

A Guide (deprecated) implements an XFASubset in ActionScript, which runs in the Adobe Flash® Player.

If the button’s Click event is marked run on server, the form is submitted to the Forms service.

No action

No action

No action

Creates a FormsServiceClient object and invokes the processFormSubmission method.

No action

No action

No action

The Forms service merges new data into the form design (if applicable).

No action

No action

Executes the field click event.

No action

No action

Executes the form-wide field calculate events.

No action

No action

Executes the form-wide page calculate events.

No action

No action

Executes a page enter or exit event.

No action

No action

Executes the form-wide field validation events.

No action

No action

Executes the page validation event.

No action

No action

Executes the page exit event

No action

No action

Returns the form to the client application that invoked the Forms service. The form’s format does not change. If the form is submitted in PDF, it is returned to the client browser in PDF.

No action

Verifies that the Forms service does not return an error.

No action

No action

Creates a binary stream and sends it to the client web browser.

No action

Views calculation results that are displayed in the form.

No action

No action

// Ethnio survey code removed