Would it be possible to hide empty steps? I have a 8 step multistep form, but some users completing the form won't have access to all the fields based on previous values entered (conditional visibility is controlled by a custom module). This results in some steps being entirely empty, with just next / back buttons. :(

Comments

stBorchert’s picture

Status: Active » Needs work

Hm, good question.
In principle this should work using hook_msnf_info_steps_alter() (described in msnf.api.php) but an option "Hide if empty" in the step configuration would make sense.
I don't make promises, but this feature should be included in the next release ;)

stBorchert’s picture

Status: Needs work » Fixed

Committed: http://drupalcode.org/project/msnf.git/commit/8ce1fe2
There is now a new option "Hide the entire step if it contains no fields or none of the fields is accessible by the user." on the step configuration form. You can test this cloning the latest code from the module repository or wait for the next dev-version (it hasn't been updated yet).
I son't know when I will create the next release (maybe within the next days) so its available in dev only at the moment.

stella’s picture

awesome, thanks! I won't be working on that form again until Tuesday, but will give it a whirl then.

stBorchert++

Status: Fixed » Closed (fixed)

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