Version

Documentation » Admin

4. Templates »

« 2. Translation

This Page

4. Templates »

« 2. Translation

3. Inline Validation

The inline validation code is now part of the Sonata Form Extensions. You can refer to the related documentation for more information.

3.1. Validation group

To use a custom validation group, you can override the configureFormOptions() method:

protected function configureFormOptions(array &$formOptions)
{
    $formOptions['validation_groups'] = ['ExistingGroup', 'Default'];
}

Found a typo? Something is wrong in this documentation? Just fork and edit it!