Gets or sets an error message or warning to be displayed in a JavaScript alert when the next survey page is loaded.
An error message or warning to be displayed in a JavaScript alert when the next survey page is loaded.
It is possible, and often very useful, to use HTML markup in error messages. However in this case, the same error message as defined in the ErrorMessage would not be suitable for a JavaScript alert because these alerts do not render HTML markup. Using an error message in conjunction with returning false as the result of a postback hook allows the SDK developer to force the participant to stay on the current page and show them a message indicating the problem.
HookContext Class | DatStat.Collector Namespace | ErrorMessage