1HTML::FormFu::Filter::FUosrecreLCiosnttVrailbuuet(e3d)PHeTrMlL:D:oFcourmmeFnut:a:tFiiolnter::ForceListValue(3)
2
3
4
6 HTML::FormFu::Filter::ForceListValue - convert a single value into a
7 1-item-list
8
10 version 2.07
11
13 element:
14 - type: Repeatable
15 increment_field_names: 0
16 elements:
17 - name: foo
18 render_processed_value: 1
19 filter:
20 - ForceListValue
21
23 Causes a single submitted value to be changed to a list containing 1
24 item.
25
26 Solves an uncommon problem with a Repeatable block with
27 increment_field_names disabled, when manually increasing the repeat
28 count after the form was submitted with only a single value for each of
29 the Repeatable's fields.
30
31 If these circumstances, when rendered, every repeated field would have
32 the initially-submitted value as its default.
33
34 Using this filter, and setting render_processed_value to "true" will
35 ensure that only the first repetition of each field will have the
36 submitted value as its default; all subsequent repetitions will have no
37 default value.
38
40 Carl Franks
41
43 This library is free software, you can redistribute it and/or modify it
44 under the same terms as Perl itself.
45
47 Carl Franks <cpan@fireartist.com>
48
50 This software is copyright (c) 2018 by Carl Franks.
51
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.32.1 2021-0H1T-M2L7::FormFu::Filter::ForceListValue(3)