I
I
Igor2018-09-22 18:46:43
Drupal
Igor, 2018-09-22 18:46:43

How to remove re-execution of form_alter for DRUPAL8?

Created a contact form. When you click "send", there should be a record in the database of data from the fields. Some of the fields are filled in automatically by hook_form_alter before the form is displayed.
For these purposes, I wrote a function in $form['actions']['submit']['#submit']... form.
Why is hook_form_alter suddenly re-executed? How to bypass it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question