## Example without errorsModel
```js
const forms = [
{
model: {
id: 1,
last_name: '',
first_name: '',
password: '',
email: '',
resume: '',
status: true
},
schema: {
fields: [
{
type: 'input',
inputType: 'text',
inputName: 'first_name',
label: 'First Name',
model: 'first_name',
id: 'first_name',
placeholder: 'Your first name',
hint: 'beautiful hint',
validations: 'required',
helpLabel: 'help the label'
},
{
type: 'input',
inputType: 'text',
inputName: 'last_name',
label: 'Last Name',
model: 'last_name',
id: 'last_name',
placeholder: 'Your last name',
required: true,
validations: 'required'
},
{
type: 'input',
inputType: 'email',
inputName: 'email',
label: 'Email',
model: 'email',
id: 'email',
placeholder: 'Your email',
required: true,
validations: 'required|email'
},
{
type: 'input',
inputType: 'password',
inputName: 'password',
label: 'Password',
model: 'password',
id: 'password',
placeholder: 'Your password',
required: true,
validations: 'required'
},
{
type: 'textarea',
inputName: 'resume',
label: 'Resume',
model: 'resume',
id: 'resume',
placeholder: 'Your resume',
required: true,
validations: 'required'
}
],
fieldSubmit: {
type: 'submit',
tag: 'button',
inputName: 'submit',
value: 'Submit',
id: 'submit',
inputClass: 'btn btn-sm btn-primary'
}
}
}
]
const submit = () => {
console.log(forms[0].model, '==> update form')
}
```
## Example with errorsModel
```js
const forms = [
{
model: {
id: 1,
last_name: 'John Doe',
first_name: 'plop',
password: 'J0hnD03!x4',
email: 'john.doe@gmail.c',
status: true
},
errorsModel: [
{ 'code': 'email', 'source': '/data/attributes/email' },
],
schema: {
fields: [
{
type: 'input',
inputType: 'text',
inputName: 'first_name',
label: 'First Name',
model: 'first_name',
id: 'first_name',
placeholder: 'Your first name',
hint: 'beautiful hint',
validations: 'required',
helpLabel: 'help the label'
},
{
type: 'input',
inputType: 'text',
inputName: 'last_name',
label: 'Last Name',
model: 'last_name',
id: 'last_name',
placeholder: 'Your last name',
required: true,
validations: 'required'
},
{
type: 'input',
inputType: 'email',
inputName: 'email',
label: 'Email',
model: 'email',
id: 'email',
placeholder: 'Your email',
required: true,
validations: 'required|email'
},
{
type: 'input',
inputType: 'password',
inputName: 'password',
label: 'Password',
model: 'password',
id: 'password',
placeholder: 'Your password',
required: true,
validations: 'required'
},
],
fieldSubmit: {
type: 'submit',
tag: 'button',
inputName: 'submit',
value: 'Submit',
id: 'submit',
inputClass: 'btn btn-sm btn-primary'
}
}
}
]
const submit = () => {
console.log(forms[0].model, '==> update form')
}
```