How can i remove required field validation on click submit button? I have some radio buttons such as draft, need review, etc. I want to remove (omit) the required fields when draft is selected, and click on the submission button.
I tried with below code but it is not working.

function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id)
{
 if($form_id =='catalog_node_form')
 {
  $form['#validate'][] ='remove_required_field';
 } 
} 

function remove_required_field($element)
{ 
 foreach (element_children($element) as $name) 
 { 
  $element[$name]['#required'] = FALSE; 
 } 
 return $element; 
}
In the form_alter function you can use the limit_validation_errors property. 

'#limit_validation_errors' =&gt; array(),


The above code will not perform any field validations. You can then add the individual fields that you need to validate here using the below code.

$form['actions']['next']['#limit_validation_errors'][] = array($field_key);


Where next is the action that I am using.