Seems like I didn't find any complete resource for doing this anywhere.

I already have an accordion group set up in a Profile type "account profile" (Profile2 module). I intend this profile type to be displayed at registration page. The thing is I need to code my user registration page using a TPL because the client want to rearrange the fields like it's a "fill-in-the-blanks" questionnaire.

I looked at the $form using dsm() and find it hard to print render() the group. All I see is a #fieldgroups, #groups and #group_children object which cannot be rendered.


Mtoag’s picture

You can use,

 print render ($form['profile_education_information']['field_degree']);

"profile_education_information" is the profile type name and
"field_degree" is the name of profile type fields name.

Gajendra Kumar Sharma