Reference > Script steps reference > Control script steps > Allow User Abort
 

Allow User Abort

Allows or prevents users from stopping a running script.

See also 

Options 

On allows users to stop a script by pressing Esc or Command-.(period) (macOS).

Off prevents users from stopping a script by pressing Esc or Command-.(period) (macOS).

Compatibility 

 

Product 

Supported 

FileMaker Pro Advanced 

Yes 

FileMaker Go 

Yes 

FileMaker WebDirect 

Yes 

FileMaker Server 

Yes 

FileMaker Cloud 

Yes 

FileMaker Data API 

Yes 

Custom Web Publishing 

Yes 

Runtime solution 

Yes 

Originated in 

FileMaker Pro 6.0 or earlier

Description 

The Allow User Abort script step affects the script that it is executed in and all sub-scripts.

By default, users can stop a script by pressing Esc or Command-.(period) (macOS). To prevent users from stopping a script, use the Allow User Abort script step and set it to Off.

By default, unknown (obsolete or unrecognized) script steps will stop a script. To change this behavior, set the Allow User Abort script step to one of the following. In either case, unknown script steps return FileMaker Pro Advanced error 4 ("Command is unknown").

On (default) allows unknown script steps to stop the script

Off skips unknown script steps and allows the script to continue to run

Clients can’t stop server-side scripts and scripts performed via Custom Web Publishing or the FileMaker Data API. In these cases, this script step determines only whether unknown script steps are skipped.

In FileMaker Go, this script step can also affect how a running script performs when a user switches back to FileMaker Go. See FileMaker Go Development Guide.

Example 1 

Displays the records in the Print Invoices layout in a new window in Preview mode and pauses the script. You can click Continue to print the invoices, or you can cancel printing in the Print dialog box because in the Print script step, the With dialog option is On. Allow User Abort is Off so that you aren't left with an extra window open if you cancel the script.

Allow User Abort [Off]
New Window [Style: Floating Document; Name: "Print Invoices"; Using layout: "Print Invoices" (Invoices)]
Enter Preview Mode [Pause: On]
Print [Restore: Printer; With dialog: On]
Close Window [Current Window]

Related topics 

Script steps reference (alphabetical list)

Script steps reference (category list)

Get(AllowAbortState) function