How can I change the drupal form action based on Radio button selected? I have developed a custom form in my module. Now I have to change the form action based on radio button selected. Suppose if I have 3 radio buttons saying
1. ABC
2. DEF
3. XYZ

If i select ABC and submit form, my result should display on www.domainname.com/abc

Thanks.
You can change the Form action in submit function

    function your_form_name_submit($form,&amp;$form_state){
          if($form_state['values']['radion_button_name'] == 'abc') {
         $form_state['redirect'] = url('path/to/redirect');
        }
    else{
       $form_state['redirect'] = url('path/to/redirect');
     }
}


hope this will help you!!