Skip to main content

parse_items

Function parse_items 

Source
pub fn parse_items<T: FormInput>(
    cx: &Cx,
    key: &str,
    values: &FormValues,
) -> Result<Vec<T>, Vec<FieldError>>
Expand description

The items the repeater key holds in a submission read through its schema, none when it posts nothing: what a record form’s parse reads the repeater with, and what a hand-written one or an action input reads.

§Errors

Each row’s refusals, under the key the row’s control posts, or the repeater’s own when it holds text or a list.