🇨🇺Cuba @ramonma1989

Account created on 12 February 2015, almost 10 years ago
#

Recent comments

🇨🇺Cuba ramonma1989

I encountered the same problem, i was trying to disable the html5 validation using a hook_form_alter

function custommodule_form_alter(&$form, FormStateInterface $form_state, $form_id)
{
if ($form_id == 'contact_message_feedback_form') {
$form['#attributes']['novalidate'] = '';
}
}

but it dint work, and when i inspected the html code of the page i notice that the no validate atribute was been added to de div wrapping the form.

I hope this helps.

Production build 0.71.5 2024