Steps to reproduce:

  1. Create two profile types
  2. Check "show on registration form" for both profile types
  3. Create a field group in one or both of the profile types.
  4. Add fields to one or more of the field groups
  5. Visit registration page. Fields nested in field groups do not appear.

Comments

grasmash’s picture

Priority: Normal » Major

Going 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.

BrightBold’s picture

If 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.

sportel’s picture

I'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.

Georgique’s picture

I confirm bug.

lonehorseend’s picture

Do 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.

cfischer83’s picture

I have confirmed this is also a bug. Any chance of this being fixed soon?

simone960’s picture

Exact same problem encountered as author pointed out. Please help. Thanks

rinkiprasad’s picture

I am still facing same problem. Required to be fixed on urgent basis,

left’s picture

Encountered 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.

DimitriV’s picture

Issue summary: View changes

Has anyone find already a solution?

I have the same problem with fieldgroup 7.x-1.4 en Profile 2 7.x.2.x-dev

david.qdoscc’s picture

Same 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.

danharper’s picture

I'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

dready2011’s picture

I 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

rooby’s picture

Status: Active » Closed (duplicate)

I 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, ...)

rooby’s picture