runAt

Specifies what application can execute the script.

Keep in mind these points when specifying the application that can execute a script:

  • The runAt setting is enforced even if another script calls the script.

  • Scripts in forms designed for printing run at the server even when you set the scripts to run at the client.

  • The preSubmit event does not execute in interactive forms and forms designed for printing when you set the script to run at the server.

Syntax

Reference_Syntax.runAt = "client | server | both"

Values

Type

Values

String

  • client (default)

  • server

  • both

The script runs only on the client.

  • server

  • both

The script runs only on the server.

  • both

The script runs on both client and server.

Applies to

Version

XFA 2.1

Examples

JavaScript

NumericField1.calculate.script.runAt = "both";

FormCalc

NumericField1.calculate.script.runAt = "both"

// Ethnio survey code removed