DatStat Illume 4.5 SDK Class Reference

HookContext.PriorSubmission Property

Gets a value that specifies whether a submission has already been made for the current survey session.

public Boolean PriorSubmission {get;}

Property Value

true if a submission has already been made for the current survey session, false otherwise.

Remarks

It is often important to prevent SDK Hook code from being run multiple times when a survey is submitted. This can happen if the participant hits the submit button multiple times in rapid succession, or if the Back button is hit followed by repeated clicks on the Submit button. Use this property to check for a prior submission before running code after a submission such as RuntimeContent in the End-Page Survey Collection, Submit hooks, or PostBack hooks which react to a PostBackActionType of "Submit".

Note that the DatStat Illume Collector will never allow multiple survey submissions for the same participant.

See Also

HookContext Class | DatStat.Collector Namespace