Execution Context

When creating web-based content — either landing pages, Web Collect or Smart Capture forms — the execution context of the page (‘load’ or ‘post’) can be detected by the global, read-only variable @@ExecCtx.

The variable returns the execution context of the page request. If the page request does not specify a context, the variable defaults to load.

NOTE: In current release of Marketing Cloud, the @@ExecCtx variable will always return load, irrespective of the context. This is a known issue and should be resolved in a future release.


In the following example, a form is displayed when the page is loaded:

Not a subscriber? Subscribe now.