title: Zend form validation
body: <p>I am using Zend Form to create dynamic form.</p>
  
  <p>I have Zend Form validation too.</p>
  
  <p>Trying to remove Validation dynamically, but not getting any success.</p>
  
  <p>Can you plz help me to remove Zend Validation.</p>
  
  <p>Bellow is my code for remove validation : </p>
  
  <pre><code>$toRemValArray = array();
  $toRemValArray[0] = 'ele_4af42ceac7810';
  
  if(isset($_POST['btnPost_x'])){                 
      if ($form-&gt;isValid($_POST)) {
          $allElements = $form-&gt;getElements();
          foreach($allElements as $val){
              if(in_array('ele_4af42ceac7810',$toRemValArray)){
                  $value = $form-&gt;getElement($val-&gt;getName());
                  $value-&gt;removeValidator('ele_4af42ceac7810');
              }
          }
      }
  }
  </code></pre>
  
  <p>Let me know whether my code is having any issue</p>
  
  <p>Thanks 
  Mohammad Tareque</p>