@jalik/form-parser
Advanced tools
Changelog
v3.1.4 (2024-04-29)
parser
is passed to parseField()
or parseForm()
optionsParsingType
to allow "string"
and custom type like phone
parseForm()
returning radio input value as string instead of boolean or number when the last field does not have a data-type
parseField()
to execute custom parser on each value of an array instead of the array itselfChangelog
v3.1.2 (2024-04-25)
null
when unchecked instead of false
null
instead of undefined
Changelog
v3.1.0 (2023-06-26)
parser: (value, dataType, field)
to parseForm()
and parseField()
to handle custom data-type
checkbox
, radio
, select
, password
and hidden
fieldsdata-type="boolean"
not being false
when unchecked[]
in the name)name="items[]"
)Changelog
v3.0.0 (2023-06-23)
ignoreButtons
in parseForm(options)
ignoreUnchecked
in parseForm(options)
ignoreEmpty
in parseForm(options)
ignoreDisabled
in parseForm(options)
smartTyping
in parseForm(options)
dynamicTyping
in parseForm(options)
true|1|yes|on
for data-type="boolean"
false|0|no|off
for data-type="boolean"
value
as second argument of filterFunction
in parseForm(options)
parsing: 'none' | 'type' | 'data-type' | 'auto'
in parseForm(options)
and parseField(options)
data-type="boolean"
not returning false
when checkbox is not checkedChangelog
v2.0.12 (2022-10-19)