Validation Form Of Partial

Is the form. Inside the form is handled by a custom map. Inside this partial have a map and click generate. No matter what button generates, it is important that when the button is clicked, the generator does not work when not filled in the required fields (user can blunt Poetto it about this alert). As for me, from partial clicking on AjaxButton to make the validation of the form?

'type' => 'horizontal',




'id' => 'coupon-form',

'htmlOptions' => array('enctype' => 'multipart/form-data'),

'action' => $this->createUrl('campaigns/saveCoupon'),