HTML::...:Hidden(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::Widget::Element::Hidden πŸ’–

okay bestie, welcome to the HTML::Widget::Element::Hidden man page β€” section 3pm, Perl user-contributed docs, the whole vibe. it's a hidden element. it's giving "you can't see me but i'm literally in the form" ✨. let's get into it 🫢


✨ NAME ✨

HTML::Widget::Element::Hidden β€” Hidden Element πŸ‘»


🌸 SYNOPSIS 🌸

my $e = $widget->element( 'Hidden', 'foo' );
$e->value('bar');

that's it, that's the whole flex. make a Hidden element called foo, then set its value to bar. slay πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Hidden Element. periodt. it's an element, and it's hidden, no cap πŸ‘‘


πŸŽ€ METHODS πŸŽ€

⭐ value

Default value is 1. yep, 1. not zero, not undef, one. iconic behaviour honestly.

⭐ retain_default

if this is true, it overrides the default behaviour, so that after a field is missing from the form submission, the xml output will contain the default value, rather than be empty. so basically: field goes missing β†’ normally the output is empty β†’ but with retain_default true, you get the default value instead. the way that just… keeps your default πŸ˜­πŸ’–

⭐ new

(the constructor. it's here. it exists. main character energy 🌈)

⭐ containerize

(also here. living its life. πŸ’œ)


πŸ”₯ SEE ALSO πŸ”₯

  • HTML::Widget::Element β€” go read this one too, iykyk

πŸ‘‘ AUTHOR πŸ‘‘

Sebastian Riedel, "sri@oook.de" β€” thank you for your service king πŸ«‘πŸ’–


🌈 LICENSE 🌈

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free as in go off, bestie πŸŽ€


lowkey reminder: this page is from perl v5.36.0, dated 2023-08-10, and it's the HTML::Widget::Element::Hidden page from the 3pm section of the User Contributed Perl Documentation. okay bye, drink water, go set some hidden values πŸ’…βœ¨πŸŒΈ
πŸ“¦ where this page comes from