我採用了棱角分明1.5表單生成器,我想在我的json
文件添加validation
我 1形式建設者驗證模式:角日期
{
"description": "managersList_birth_date",
"model": "birth_date",
"type": "input-date",
"name": "Bday",
"maxDate": "today",
"class": {
"main_part_class": "col-xs-12 col-sm-6 col-md-6",
"label_part_class": "",
"control_part_class": ""
},
"validation": {
"required": true,
"pattern": "/^(\d{2})\/(\d{2})\/(\d{4})$/" //error in json
}
}
1.有我的JSON文件中的錯誤 - Invalid escape character in string
。
2.此正則表達式將在form builder
工作?以防錯誤解決。
不完全是我所要求的。 –