HTML::...:Result(3pm)

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

πŸ’… NAME πŸ’…

okay so bestie, this is the manual page for HTML::FormHandler::Result β€” it's a form result object, and it's here to explain itself. πŸ’–


✨ VERSION ✨

This one is at version 0.40068. iconic. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

This is the Result object that maps to the Form. fr fr.

my $result = $self->form->run( $params );
my $result2 = $self->form->run( $other_params );

my $value = $result->field('title')->value;
my $fif = $result->fif;
my $field_fid = $result->field('title')->fif;

🌸 DESCRIPTION 🌸

So β€” not experimental, okay, but the 'results' have not been exercised as much as the other parts of the code. If there is missing functionality or things that don't work, please ask or report bugs. no gatekeeping, just tell them. 🫢

The original FormHandler process method, when used with persistent forms, leaves behind state data for a particular execution of process. This is not optimal or clean from an architectural point of view. The intention with the 'result' object is to separate dynamic data from static. The 'form' object is treated as a kind of result factory, which will spit out results and leave the form in a consistent state. main character energy, honestly. πŸ‘‘

In the current state of implementation, the result object can be used to render a form:

$result->render;

However there are still open questions about how much of the form/field should be forwarded to the result. At this point, the number of forwarded methods is minimal. Mechanisms to make this more customizable are being considered. the way that's still cooking… πŸ“

Dynamic select lists are not supported yet. Static select lists (that are the same for every form execution) should work fine, but lists that are different depending on some field value will not. πŸ’€

Most of this object is implemented in HTML::FormHandler::Result::Role, because it is shared with HTML::FormHandler::Field::Result. iykyk. 🌈


πŸ’œ 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. slay, legally. ⭐


mwah πŸ’‹ this page is from perl v5.34.0, dated 2022-03-25, and it's the HTML::...:Result(3pm) doc β€” 0.40068 vibes, byeee πŸ§šπŸ’œ

πŸ“¦ where this page comes from