Why the action buttons are not working? I am rendering the user profile edit form ($form_id = 'user_profile_form') on a custom tpl.php page. All the custom fields are user-defined under configuration &gt; Account Settings &gt; Manage Fields:

Following is the code:

&lt;?php $form = drupal_get_form('user_profile_form');?&gt;

&lt;div class="some_class"&gt;
    &lt;?php print(drupal_render($form['field_2'])); ?&gt;
    &lt;?php print(drupal_render($form['field_3'])); ?&gt;
    &lt;?php print(drupal_render($form['field_4'])); ?&gt;
    &lt;?php print(drupal_render($form['actions'])); ?&gt;
&lt;/div&gt;


All the fields are being rendered well. Even the submit and cancel buttons under the actions field are rendered BUT they are not working. Nothing happens when I click on them.

Please point out any error.

UPDATE:

I should point out that I don't want all the form elements to be rendered, which is why I am trying to render the elements separately.
Can you try to use:

drupal_render_children($form),

remove "actions". and hide all redundant elements :) 

As second approach, you can 

  echo render( $form['form_id']);
  echo render( $form['form_build_id']);
  echo render( $form['form_token']);
  echo render( $form['options']['status']);


in the beginning of the template file
Regards