Some roles should have the ability to view forms without multistep.

Comments

vkareh’s picture

Component: Code » User interface

I'm thinking that since that is not always a desirable feature, say if the form is unusually long (which will take a while to render) we should make it optional. Maybe a button on the top that says "view the complete form" or something similar? What are your thoughts on this?

vkareh’s picture

Assigned: Unassigned » vkareh
Status: Active » Fixed

I programmed in a way for users with "toggle multistep" permissions to toggle back and forth between the entire form and the multistep form. Check out the new commit and see if this works for you.

davidburns’s picture

This feature would give the desired result if it actually worked.
What I'm seeing is that 0 is actually being returned as FALSE.
So $step never gets set to 0 and the form returns to step 1.

Line 354

  if (is_numeric(arg(3)) && arg(3) == 0 && user_access('toggle multistep')) {
    $step = 0;
  }
vkareh’s picture

Did you try the new snapshot (I just committed it a few minutes ago)? I took a different approach at setting field #access. It might solve the problem for you. It actually works for me.

Status: Fixed » Closed (fixed)

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