SilverStripe\MultiForm\Models\MultiFormStep::validateStep
Custom validation for a step. In most cases, it should be sufficient to have built-in validation through the {@link Validator} class on the {@link getValidator()} method.
Use to feed back validation messages to the user. Please don't redirect from this method, this is taken care of in .
Signature
public function validateStep(array
$data,
Form
$form )
Parameters
$data
— array- Request data
$form
— object
Returns
- boolean
- Validation success