Error not obvious on form when using Tabs

Created on 26 February 2019, almost 6 years ago
Updated 16 October 2024, 4 months ago

When you have a form error such as a missing required field - if the tab which this field is not inside is not open then the user has no indication of what has gone wrong, the page simply refuses to save.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom joehuggans Harrogate, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India sushyl@gmail.com Pune

    I can reproduce this issue when working with horizontal tabs. Seems like this issue was closed when it was fixed for the accordion field group.

  • 🇮🇳India sushyl@gmail.com Pune

    I think this is only happening when a custom error is set using setError() as follows.

    $form_state->setError($form['field_name']['widget'][0]['value'], 'Please enter name.');
    
  • 🇩🇪Germany Anybody Porta Westfalica

    Please update the issue summary accordingyly. Fixes should go into 4.x. Also needs tests.

Production build 0.71.5 2024