Skip to main content
Form array key was missing ($form['actions']['submit']['#value'] exist, while $form['submit']['#value'] does not).
Source Link

you could use string overrides module or use hook:

function yourmodule_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'name_of_form') {
    $form['submit']['#value']$form['actions']['submit']['#value'] = 'Your button text';
  }
}

you could use string overrides module or use hook:

function yourmodule_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'name_of_form') {
    $form['submit']['#value'] = 'Your button text';
  }
}

you could use string overrides module or use hook:

function yourmodule_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'name_of_form') {
    $form['actions']['submit']['#value'] = 'Your button text';
  }
}
Source Link
uwe
  • 12k
  • 15
  • 92
  • 171

you could use string overrides module or use hook:

function yourmodule_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'name_of_form') {
    $form['submit']['#value'] = 'Your button text';
  }
}