Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Forms Scripting Order of Script Execution

The scripts specified in the form model are executed in a certain order during the different form life-cycle events.

Note: Errors in user-provided scripts are caught and logged at the error level at runtime and shown in the preview page logging area in the Form Designer.

The order of script execution is as follows:

## When the Form is opened

- Form Open event is published.

## When the Submit button is clicked

- Control validation scripts are executed.
- Form Submit event is published.
- Form Close event is published.

## When the Close button is clicked

- Form Close event is published.

## When the Cancel button is clicked

- Form Cancel event is published.
- Form Close event is published.

## When You Update a Control Value and Navigate out of the Control

- Control Validation scripts are executed.
- Control Exit event is published.
- Control Update event is published.

For the events where the validation scripts are executed, no further steps proceed if any of the validations fail.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.