- ๐จ๐บ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.