AfterFormLoad() – for Multiforms and single Forms

You can trigger scripts based on certain system events. One such event is after the forms in your project have loaded into memory, i.e. the AfterFormLoad() event.

The AfterFormLoad() event has two ‘sub-events’.

The first event runs after a multiform loads – AfterFormLoad(). This event is only triggered once.

function AfterFormLoad() {  // RUNS AFTER MULTIFORM LOADS ONLY ONCE

[code to be run];

}

The second event relates to a specific form, and runs each time the form is loaded – FORMNAME_AfterFormLoad().

function FORMNAME_AfterFormLoad() {  // RUNS WHEN THE SECTION OF A MULTIFORM LOADS OR IN SINGLE PAGE MODE

[code to be run];

}