Skip to main content


Type: function(violations)

  • violations: an array of violations against the passed in selectionValidators E.g. ['noOrphanSeats', 'consecutiveSeats'] if the selected seats contain orphans AND non-consecutive seats.

Triggered when one or more selectionValidators are passed in, and the selection is invalid.

You should use this callback to prevent a ticket buyer from submitting the ticketing form, and to show a warning message. For example:

selectionValidators: [{type: 'noOrphanSeats'}, {type: 'consecutiveSeats'}],
onSelectionValid: () => ..., // enable submit button and hide warning
onSelectionInvalid: violations => ... // disable submit button and show warning