callout

Use the callout element to call code outside IEG to do validations or other operations during script execution. Callouts invoke a custom function that is specified in an expression before the script moves to the next page. Access to the Datastore is provided to the function through the appropriate identifiers.

For example, in addition to saving the user's responses to the questions in the IEG script, you can also update the Datastore with extra information that is returned by underlying queries.

You can put callouts anywhere that question pages can exist in the script, except before the first question page. If a page is accessed from a summary page link and is followed by callouts, the callouts get invoked unless the 'skip-to-summary' attribute is set to true on the summary link.

Attributes

Table 1. Callout Attributes
Name Description
id An identifier for the callout, which must be unique on a page.
expression An expression that is used to invoke a callout custom function at this point in the script. Datastore information (root entity ID, execution ID and current entity ID) is provided to the function automatically.

Child elements

None.