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
The variable returns the execution context of the page request. If the page request does not specify a context, the variable defaults to
NOTE: In current release of Marketing Cloud, the
@@ExecCtxvariable 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: