- Merge request !6Issue #2787179: Ensure visibility of invalid fields (JS) โ (Merged) created by nbboy
- ๐ฎ๐นItaly sardara
Updating the patch of #74 to use the new
once
library (see change record โ ), so that patch is compatible with D10.
Also fixed two 2 deprecation warnings. - ๐ฌ๐งUnited Kingdom rossb89 Bristol
This issue appears to be trying to solve the same as this issue https://www.drupal.org/project/field_group/issues/2969051 ๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info .. I don't think we need two issues open trying to solve the same thing, unless i've missed some difference?
This patch from https://www.drupal.org/project/field_group/issues/2969051#comment-15022271 ๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info in that issue appears to solve the issue as far as I can see from my testing with 9.5.x.
We were previously using patch 60 from this issue on a project which at some point in the last year and a half seemed to stop working in all circumstances. Patch 99 (from comment #100) in the other issue (2969501) is working nicely though.
- ๐ช๐ธSpain rcodina Barcelona
Patch #85 works for me for fields that are in both inside and outside tabs. But the patches on ๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info don't work for fields inside tabs.
- ๐ซ๐ทFrance opi
Note that issue #2894351 also try to fix this bug. Patch 26 works pretty well with Seven/Claro/Gin admin theme
source: https://www.drupal.org/project/field_group/issues/2894351#comment-14394498 ๐ Tabs with invalid input are not focused RTBC
- ๐ช๐ธSpain rcodina Barcelona
Adding related issues mentioned on #86 and #88. Please test the patch on #85.
- ๐ณ๐ดNorway candalt
Can confirm that patch on #85 works for me on Drupal 10.1.8 and unpublished_node_permissions 1.4.0
- Status changed to RTBC
10 months ago 1:52pm 23 January 2024 - ๐ฎ๐ณIndia shalini_jha
I have added a required field in tab , but if tab is close than the validation is not working for the required field and getting error in console. i have applied this patch #85 , and this working fine for me. +RTBC
- ๐ฉ๐ชGermany Anybody Porta Westfalica
The MR is empty, could someone please create a working MR from the RTBC'd patch?
- ๐ฎ๐ณIndia nikky171091
We have the full HTML required field & I am not able to set the focus. I have tried the latest patch #85 also.
We are using the D10 version.
Please provide some insights.
- ๐ช๐ธSpain rcodina Barcelona
@Anybody Done, patch #85 already uploaded to module issue fork, also updated latest code from 8.x-3.x. So now MR is updated.
- Status changed to Needs work
6 months ago 6:09am 21 May 2024 - ๐ฉ๐ชGermany Anybody Porta Westfalica
@rcodina thank you! Sadly tests are failing currently.
- ๐ซ๐ทFrance dydave
The tests seem to be fixed in ๐ Automated Drupal 11 compatibility fixes for field_group - Fixed PHPUnit on GitlabCI RTBC , in particular with the changes in file
contrib/field_group_migrate/tests/src/Functional/MigrateUiFieldGroupTest.php
, see:
https://git.drupalcode.org/project/field_group/-/merge_requests/49/diffs...
maybe, @Anybody, it might be worth taking a closer look at this other MR first (MR!49) so phpunit tests could get fixed and run for other tickets.I would recommend getting the ESLint job fixed first in ๐ GitlabCI: Fix ESLINT validation errors Fixed (MR!54), before getting this MR approved:
it seems it would introduce quite a few linting errors, mostly in the JS files.Otherwise, @rcodina, you could try cherry-picking a commit from another MR, I've used to pass the tests, see :
https://git.drupalcode.org/project/field_group/-/merge_requests/47/diffs...
Or simply download the file locally and try running the phpunit tests, then commit the file and re-run the tests.Hope that helps moving the ticket forward.
Thanks in advance for your feedback! - ๐ง๐ชBelgium nils.destoop
nils.destoop โ made their first commit to this issueโs fork.
- ๐ฆ๐นAustria maxilein
#85 does not apply to latest dev
dev-3.x a33215bD.10.2.7 php 8.3
- ๐ต๐ฑPoland gpietrzak Wrocลaw
This is the patch โ to the latest 8.x-3.6 stable version
- Status changed to Needs review
3 months ago 5:52pm 18 August 2024 - ๐ช๐ธSpain rcodina Barcelona
@Anybody All tests and checks of the MR are green except the following one which reproduces in 4 files of the module. This 4 files haven't been modified by current MR:
Class Drupal\field_group\Element\HtmlElement extends deprecated class Drupal\Core\Render\Element\RenderElement: in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\RenderElementBase instead.
So, given this is not related to current issue and that core requirements of Field Group should be changed, I think this should be addressed in a new issue.
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Please ensure that this won't conflict with ๐ HTML5 validation is preventing form submit and not fully accessible Needs work
Tests look good, I think we're almost close to the finish line here?
- ๐ฉ๐ชGermany Grevil
@rcodina said in #87:
Patch #85 works for me for fields that are in both inside and outside tabs. But the patches on #2969051: HTML5 Validation Prevents Submission in Tabs don't work for fields inside tabs.
Both this issue and ๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info , seem to fix a very similar issue (if not the same).
The fixes here seem to be more sophisticated, though. I'd say, we merge the MR opened here (once tested) and see if anything is left to do in
๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info .@Anybody, I think you meant to not conflict with ๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info instead of ๐ HTML5 validation is preventing form submit and not fully accessible Needs work ?
- Status changed to RTBC
2 months ago 2:56pm 9 September 2024 -
grevil โ
committed e7b3e286 on 4.x authored by
nbboy โ
Issue #2787179: Ensure visibility of invalid fields (JS)
-
grevil โ
committed e7b3e286 on 4.x authored by
nbboy โ
- Status changed to Fixed
2 months ago 3:06pm 9 September 2024 - ๐บ๐ธUnited States robpowell Boston
I was working on re-rolling #2969051 but saw the latest comment on that ticket and came to see if this fix resolves my problem.
I have three tabs all with required fields. The first tab is the default shown tab so no issue there. When I try to submit with the 2nd tab fields not completed I am correctly brought to the tab and field. However, if I fill that in and submit again, I am not pushed to the 3rd tab and instead see the server side validation.
Here is the video of this interaction, https://www.drupal.org/files/issues/2024-09-09/field_group_3_tabs.mov โ
I'll note that this was the exact same behavior I experienced on #2969051.
- ๐ฉ๐ชGermany Grevil
Thank you, @robpowell!
Could you create a follow-up issue regarding this problem, with the information you provided, targeting 4.x?
- ๐บ๐ธUnited States robpowell Boston
Done! https://www.drupal.org/project/field_group/issues/3473361 ๐ Multiple required fields on multiple tabs do no trigger frontend validation Active
Automatically closed - issue fixed for 2 weeks with no activity.
- ๐ณ๐ดNorway steinmb
Thanks for working on this. Ended up here coming from ๐ HTML5 Validation Prevents Submission in Tabs Postponed: needs info
I noticed that the MR target changed from 8.x-3.x to 4.x and as result, non of the changes here was committed to 8.x-3.x. Is the plan to only fix this in 4.x? If so, I am a little concerned, as 4.x is only in alpha1 and site policies will probably block them from upgrading to an early alpha, if alpha at all and I guess most field_group installations is on 8.x-3.x branch. Can you elaborate on what the plan is. Sorry if I missed this in any of the comments above.