I have a small custom form which has its own submit button.
$form['activity']['submit'] = array(
'#type' => 'button',
'#value' => t('Execute'),
'#name' => 'test_button',
'#submit' => 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.