Drupal 8 plugins API | Drupal 8

Drupal 8 plugins API

Submitted by editor on Thu, 07/07/2016 - 15:05

first form
$form['OrderId'] = array(
'#type' => 'textfield',
'#title' => t('REFERENCE ID:'),
'#required' => TRUE,
);

$form['amount'] = array(
'#type' => 'textfield',
'#title' => t('TRANSACTION AMOUNT:'),
'#required' => TRUE,
);

$form['Back'] = array(
'#type' => 'submit',
'#value' => t('Back'),
);

$form['submit']= array(
'#type' => 'submit',
'#value' => t('Pay'),
);

second page i have to get previous form parameters as POST method

hasan.raza90

Wed, 06/14/2017 - 11:21

Great, its a very good approach to send form variable's on submit button. Thanks vijoy

Add new comment