Skip to main content

structured_input

Function structured_input 

Source
pub fn structured_input(fields: &[FieldDef], form: &FormInput) -> FormInput
Expand description

form, with the value of each structured field of fields built from the sub-field inputs it sent (members[0][name] and so on), as JSON text under the field’s name: a list of rows for a repeater or flexible content, one object for a group or a clone. Rows come in the order of their numbers, numbered again from 0. A field the form sent no sub-field input for keeps what the form sent under its name, such as JSON text, or nothing.