php - How can I implement Ajax Form Validation in Sonata Admin Bundle? -


i newbie in symfony. use sonata admin bundle symfony 2.1. how can implement ajax form validation? there solutions?

i'm not sure if works in sonata admin 2.1 can try following if have example *sonata_type_collection*. set option: 'cascade_validation' => true should job.

that works quite fine @ current sonata admin (2.3).

$formmapper          ->with('customer_contacts', array('collapsed' => true))             ->add('customer_has_contacts', 'sonata_type_collection', array('cascade_validation' => true),                  array(                     'edit'              => 'inline',                     'inline'            => 'table',                     'sortable'          => 'position',                     'admin_code'        => 'acme_demo_bundle.customer_has_contacts',                 )             )         ->end(); 

Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -