GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTML::FormFu::Filter::ForceListValue(3) User Contributed Perl Documentation HTML::FormFu::Filter::ForceListValue(3)

HTML::FormFu::Filter::ForceListValue - convert a single value into a 1-item-list

version 2.07

    element:
      - type: Repeatable
        increment_field_names: 0
        elements:
          - name: foo
            render_processed_value: 1
            filter:
              - ForceListValue

Causes a single submitted value to be changed to a list containing 1 item.

Solves an uncommon problem with a Repeatable block with increment_field_names disabled, when manually increasing the repeat count after the form was submitted with only a single value for each of the Repeatable's fields.

If these circumstances, when rendered, every repeated field would have the initially-submitted value as its default.

Using this filter, and setting render_processed_value to "true" will ensure that only the first repetition of each field will have the submitted value as its default; all subsequent repetitions will have no default value.

Carl Franks

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

Carl Franks <cpan@fireartist.com>

This software is copyright (c) 2018 by Carl Franks.

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

2018-12-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.