Closed
Description
Using a form / schema combo like this:
{
"form":[
{
"key":"Name",
"description":"error",
"validationMessage":{
"201":"String is too long ({{viewValue.length}} chars), maximum {{schema.maxLength}}",
"202":"Alpha, Numeric and Hyphens only",
"302":"required",
"uniqueness":"name must be unique."
}
}
],
"schema":{
"type":"object",
"required":[
"Name"
],
"properties":{
"Name":{
"title":"Name",
"type":"string",
"maxLength":25,
"pattern":"^[A-Za-z0-9\\-]+$"
}
}
}
}
The validation doesn't work as expected. If you type in "_"
then backspace, retype "_"
, you won't get a validation message. If you remove line 1787 in schemaForm.js, everything seems to work and update as needed.
Edit: Added backtick, markdown ate the _
otherwise. (@david.lgj)
Metadata
Metadata
Assignees
Labels
No labels