HideOnForwardSection.validate_on_move()#

HideOnForwardSection.validate_on_move()[source]#

Validates the current page and its elements.

Can be overloaded to change the validating behavior of a derived section. By default, this validation method is called on each foward and backward move, as well as when participants jump from the section, but not when they jump to the section.

Raises

ValidationError – If validation fails.

See also

Use the individual methods validate_on_forward(), validate_on_backward(), validate_on_jumpfrom(), and validate_on_jumpto() if you want even more fine- grained control over validation behavior.

Changed in version 2.1.0: Switched the default order of validation. Now, elements are validated first, then the page itself is validated.