How to put a custom form inside node form with own submit button? I have a small custom form which has its own submit button. 

$form['activity']['submit'] = array(
      '#type' =&gt; 'button',
      '#value' =&gt; t('Execute'),
      '#name' =&gt; 'test_button',
      '#submit' =&gt; array('my_custom_form_submit')
    );


I placed this in the page manager in the node edit form.

But the problem is the function my_custom_form_submit is not get executed. Instead the node form gets submitted and redirected to node view page.

Is there any way to to execute 'my_custom_form_submit' function on clicking on the custom form submit button?

Note: I don't need ajax, I want it without ajax.
you should use an ajax in inner form on submit like :

  $form['activity']['submit'] = array(
  '#type' =&gt; 'button',
  '#value' =&gt; t('Execute'),
  '#name' =&gt; 'test_button',
  '#ajax' =&gt; array(
    'callback' =&gt; '_handle_form_submit',
    'effect' =&gt; 'fade',
),
);

 function _handle_form_submit($form, $form_state) {
 // your stuff here
 }


you can see ajax example modules Ajax Examples