This issue mostly serves as a reminder that this functionality is broken.

Both as per note in http://drupal.org/node/1314892 that this feature is "premature" as well as own testing on both stable release as well as 2.x-dev branch.

Personal pet peeve: Would have saved me at least 1/2 hour of clicking and reading through code if this issue were to be fixed #1409340: Show error on 'Manage Fields' form if multipage groups are used without multipage group containers

CommentFileSizeAuthor
#4 Configuration screen64.53 KBswentel
#4 Edit form50.67 KBswentel

Comments

swentel’s picture

Status: Active » Closed (duplicate)

So it basically started working after adding the container ? Than the functionality is not broken, merely a doc support issue and also UX, which can be fixed by #1409340: Show error on 'Manage Fields' form if multipage groups are used without multipage group containers.

litwol’s picture

Status: Closed (duplicate) » Active

Not the case.

multipage and multipage group does not work on user entity, even after adding the container. that is the main bug report.
adding multipage group (container) and multipage (item within the group) does nothing. all fields remain on user/%/edit page as if no multipage/group settings were defined.

#1409340 was just a minor annoyance (although made no difference in final outcome).

swentel’s picture

Title: multipage and multipage group are broken. » multipage and multipage group don't work on user entity

Well, you didn't add in the main report that it didn't work on the user entity, hence why I closed it. Changing title.

swentel’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new50.67 KB
new64.53 KB

+ it does work out fine here, see screenshots. Need more info re: configuration. Maybe javascript errors ?

litwol’s picture

I hope this writeup saves some time for others with similar goal.

User entity will require very special handling to enable splitting fielded user entity form into multipage display (ie, multi-step form) because of the following reasons:

1) user.module provides functionality to split user/%/edit form into various "category page"s. Modules implementing hook_user_categories can add new second level tabs to appear on user/%/edit page. So multi-step/multipage user form functionality is supported "out of the box" by core.

2) user.module implements default 'account' category (ie, if you go to /user/%/edit or /user/%/edit/account you will get the same page/form). During this default (category == 'account') behavior, user.module adds various default user account form fields, as well as attaches fieldAPI fields (field_attach_form...).

3) When you attempt to view any category other than 'account' user.module skips adding default fields (as well as fieldapi fields), and this is where things begin to "break" (still work, but not as wanted/expected). So for example if you move some fields under category "profile", and visit /user/%/edit/profile you will end up with entirely empty page. this is because user.module assumes that modules implementing hook_user_categories will handle user entity form in an entirely custom way so it skips adding fieldapi fields (fields that are added on admin/config/people/accounts/fields page).

litwol’s picture

Status: Postponed (maintainer needs more info) » Active

@swentel: I haven't had the chance to read through field_group code to see exactly how it works, so i hope my question doesn't come off too shallow.

Are you suggesting that multipage and multipage group field_group settings work using /javascript/ only? My past experience writing multi-step forms lead me to assume that when manipulating fields into multipage group you would end up with form structure which when rendered will yield only the desired fields for given step and nothing more.

ie. setting undesired fields to $form['field_1']['#access'] = FALSE; etc etc.

if i understand your example correctly, multipage and multipage group field_group settings will render entire form and then hide various field groups using javascript (effectively emulating behavior of jquery ui tabs) ???

swentel’s picture

@litwol: yup, there's no server side handling here, only jQuery.

litwol’s picture

Ah!. that is good to know.

This is a very important implementation detail. in fact it is of critical importance. Would it be possible to add a note on project page and in README that this module provides front-end-only handling?

Original bug that i filed assumes this is all handled on server end. So this issue should be set to "closed (works as designed)" since when i enable js it begins to work again.

Leaving issue as 'active' for now so it sits at top of issue queue nagging hopefully to add the very important note to project page that this module provides only front-end solution.

cheers.

litwol’s picture

Title: multipage and multipage group don't work on user entity » Missing project page and README.txt documentation.

Changing issue title to reflect better.
summary:
1) project page and readme.txt need documentation that this module provides front-end only functionality.

nils.destoop’s picture

Status: Active » Fixed

Added some extra lines documentation on both the readme file, as the project page

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.