Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Steps to reproduce:
- Create two profile types
- Check "show on registration form" for both profile types
- Create a field group in one or both of the profile types.
- Add fields to one or more of the field groups
- Visit registration page. Fields nested in field groups do not appear.
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedGoing to move this up to 'major.' I've had two people report running into this bug when using Profile2 Registration Path: #1556520: Fields in groups do not display on registration form.
Comment #2
BrightBoldIf it's helpful, this bug was probably introduced sometime after 7.x-1.2. I'm running a site with Profile2 Registration Path 7.x-1.10, two profile types displaying on registration forms, and fieldgroups in one of those profile types and the fields display properly. You may already know exactly what's causing the bug (presumably you do since you fixed it once) but if not I thought I'd offer that info.
Comment #3
sportel CreditAttribution: sportel commentedI'm having the same problem: I have to profiletypes, both showing on the registration form. Both have field groups, but only the second profiletype is shown completely. The first one shows only the first field group, the rest isn't visible.
I'm using 7.x-1.2 of Profile2.
Comment #4
Georgique CreditAttribution: Georgique commentedI confirm bug.
Comment #5
lonehorseend CreditAttribution: lonehorseend commentedDo the field groups have the same machine name? Maybe there is something in the code that doesn't like duplicates . . .
I'm thinking about replacing field collections with field groups because of how the hidden widget is acting. If I'm going to run into the same problem of it not working correctly, though, I don't want to bother.
Comment #6
cfischer83 CreditAttribution: cfischer83 commentedI have confirmed this is also a bug. Any chance of this being fixed soon?
Comment #7
simone960 CreditAttribution: simone960 commentedExact same problem encountered as author pointed out. Please help. Thanks
Comment #8
rinkiprasad CreditAttribution: rinkiprasad commentedI am still facing same problem. Required to be fixed on urgent basis,
Comment #9
left CreditAttribution: left commentedEncountered same issue with fieldgroup 7.x-1.3 and Profile2 7.x-1.3.
Two profiles set to show on registration. One profile has fieldgroups and fields don't appear. The profile without fieldgroups fields appear just fine.
I will try the latest Dev version of Profile2 to see if it might correct this.
Comment #10
DimitriV CreditAttribution: DimitriV commentedHas anyone find already a solution?
I have the same problem with fieldgroup 7.x-1.4 en Profile 2 7.x.2.x-dev
Comment #11
david.qdoscc CreditAttribution: david.qdoscc commentedSame problem here on Profile2 7.x-1.3 and Field Group 7.x-1.4
I'd love a fix if anyone has one please.
EDIT I've now discovered that the field groups will render on the registration form if they are set as Vertical Tabs.
Comment #12
danharper CreditAttribution: danharper as a volunteer commentedI'm having the same issue, setting the profile weights to 0 seems to solve it but I can't get the row weights to work at all, any advice in why it does this?
I think it has something to with the fact the profile2 removes the field groups and puts them in containers or something, I'm not entirely sure but I'm going to look into the code.
Dan
Comment #13
dready2011 CreditAttribution: dready2011 commentedI found a solution for my problem in this thread, the patch suggested there made all my groups reappear on the user/edit form. Didnt test it for registrationform but think it will fix that as well.
https://www.drupal.org/node/1209640
Comment #14
rooby CreditAttribution: rooby commentedI can confirm that the fix in that issue fixes this.
Closing this as a duplicate of #1209640: The main profile is loaded twice resulting in pre_render getting execute twice (extra fields, field_groups, ...)
Comment #15
rooby CreditAttribution: rooby commented