A JMap form's metadata
The form data
an empty object if no validation error, else an object containing error messages grouped by attribute id.
const form = ...
const data = {
name: "Jack"
}
// returns {} if no error, else could returns { age: "required field" }
const errors = JMap.Form.validateData(form, data)
JMap.Form.validateData
Returns errors for the given form id and data.
If no error validation, it returns an empty object.
The result is an object where :