Hello Jean,
Good day to you.
On examining the shared code, we have noticed that you have not defined the validation rules for the Form validator in a proper format. We must give the validation rules as a key-value pair in a separate array for every input. We have modified the code for your reference, please find them below
this.options.rules = {
Pseudo: {
required: true,
regex: ['^[a-zA-Z]+', '* Enter alphabetic characters only'] // If you wnat to give the error mesaage, you need to provide as the separate key value pair.
}
}; |
We have modified your TS file and attached it in the below link for your convenience
For further reference on the available validation rules for the Form validator, kindly refer the below documentation link.
Please let us know if you need any further assistance on this.
Thanks
Prince