DatStat Illume 4.5 SDK Class Reference

HookContext.AlertErrorMessage Property

Gets or sets an error message or warning to be displayed in a JavaScript alert when the next survey page is loaded. ErrorMessage

public String AlertErrorMessage {get; set;}

Property Value

An error message or warning to be displayed in a JavaScript alert when the next survey page is loaded.

Remarks

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.

See Also

HookContext Class | DatStat.Collector Namespace | ErrorMessage