The call-to-action pattern have three fields: title, lead, and action_link. The form has a text field that goes into the pattern lead, and the submit button into the action_link.
Form is rendered but the form fields are not processed by the Form API since the form fields themselves are children of '#fields', ( $form['content']['#fields']['lead']['text'] ), so $form_state->getValue('text') returns empty value.
I tried to render a form with UI Patterns as follows:
The call-to-action pattern have three fields: title, lead, and action_link. The form has a text field that goes into the pattern lead, and the submit button into the action_link.
Form is rendered but the form fields are not processed by the Form API since the form fields themselves are children of '#fields', ( $form['content']['#fields']['lead']['text'] ), so $form_state->getValue('text') returns empty value.
Are there another way to achieve this?
Thanks,