You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formio component values are not limited to scalars/primitives, as the Value type currently implies.
The file upload component value is an object which contains metadata about the file + the backend URL, amongst others. This entire blob is sent to and stored in the backend. There is the added nuance that formio always wraps this in a list, even if there's no multiple uploads allowed (then the value is always a list with a single item).
Additionally, components can be toggled between 'scalar' and compound mode using the multiple flag - if that's set to True, the value of the component is an Array of values and the component itself is repeated in the interface (while the name has an index suffix).
Note that there also exist nested data structures in formio, using the parent.child key pattern - this will be stored in a submission data structure with the shape:
{
"parent": {
"child": "value",
}
}
The way these values (and corresponding error data structures) are handled is not sufficient.
Affected files:
validate.ts
...?
The text was updated successfully, but these errors were encountered:
Formio component values are not limited to scalars/primitives, as the
Value
type currently implies.The file upload component value is an object which contains metadata about the file + the backend URL, amongst others. This entire blob is sent to and stored in the backend. There is the added nuance that formio always wraps this in a list, even if there's no
multiple
uploads allowed (then the value is always a list with a single item).Additionally, components can be toggled between 'scalar' and compound mode using the
multiple
flag - if that's set toTrue
, the value of the component is an Array of values and the component itself is repeated in the interface (while the name has an index suffix).Note that there also exist nested data structures in formio, using the
parent.child
key pattern - this will be stored in a submission data structure with the shape:The way these values (and corresponding error data structures) are handled is not sufficient.
Affected files:
validate.ts
The text was updated successfully, but these errors were encountered: