HTML::...:Wizard(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

πŸ’œ NAME πŸ’œ

HTML::FormHandler::Wizard β€” bestie, this is how you build a multi-page form ✨

πŸ¦‹ VERSION πŸ¦‹

version 0.40068 β€” that's the vibe check, and it passed πŸŽ€

🌸 SYNOPSIS 🌸

⚠️ okay so real talk first: this feature is EXPERIMENTAL. That means the interface may change, and it hasn't been fully implemented. No cap. The devs are actively looking for input, so if this feature has you in a chokehold, please show up on the FormHandler mailing list or the irc channel (#formhandler on irc.perl.org) and discuss. 🫢

Here's the whole thing in action, and yes you will be obsessed:

package Test::Wizard;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler::Wizard';

has_field 'foo';
has_field 'bar';
has_field 'zed';

has_page 'one' => ( fields => ['foo'] );
has_page 'two' => ( fields => ['bar'] );
has_page 'three' => ( fields => ['zed'] );

...

my $stash = {};
my $wizard = Test::Wizard->new( stash => $stash );
$wizard->process( params => $params );

Like, look at it. has_field for days, then has_page splits your fields across pages, and boom β€” multi-page form, main character energy πŸ‘‘πŸ’…


🧚 AUTHOR 🧚

FormHandler Contributors β€” see HTML::FormHandler πŸ’–

This software is copyright (c) 2017 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. 🌈


aaaand that's the whole page, bestie β€” no crumbs left behind πŸ“

sign-off time: this lil masterpiece came from the User Contributed Perl Documentation, runs on perl v5.34.0, and was dated 2022-03-25 β€” iconic behavior from start to finish, periodt πŸ’€βœ¨

πŸ“¦ where this page comes from