我正在使用角度架構窗體。我遇到的問題是,當我嘗試加載表單時,有一些必需的屬性丟失了!該表格並沒有說明有關缺失的屬性。但是,當我點擊特定的字段並編輯某些內容然後刪除它時,它確實會爲我突出顯示該字段。我希望在初始加載時也發生這種情況。尋找指針。由於角度架構窗體+突出顯示帶有窗體加載錯誤的字段
1
A
回答
0
你需要在你的形式配置模式使用需要屬性:
//..other fields
"required": [
"name",
"email",
"comment"
]
檢查demo here,它所需的字段,以及:
{
"type": "object",
"title": "Comment",
"properties": {
"name": {
"title": "Name",
"type": "string"
},//here validation details
"email": {
"title": "Email",
"type": "string",
"pattern": "^\\[email protected]\\S+$",
"description": "Email will be used for evil."
},
"comment": {
"title": "Comment",
"type": "string",
"maxLength": 20,
"validationMessage": "Don't be greedy!"
}
},//here naming fields required
"required": ["name","email","comment"]
}
0
該物業是validateOnRender: true
它需要添加到窗體的global options object。
相關問題
- 1. 窗體:錯誤沒有顯示錯誤
- 2. 防止突出顯示Access窗體中的整個字段
- 3. 在窗體外顯示彈出窗體錯誤
- 4. Javascript新窗口窗體字段錯誤
- 5. 角度遠程窗體不顯示錯誤
- 6. 如何在窗體外顯示角度輸入錯誤狀態
- 7. Django窗體錯誤沒有顯示
- 8. 窗體驗證以顯示要突出顯示的重複數據字段
- 9. 如何添加一個進度條來顯示窗體按鈕點擊,顯示窗體2的加載進度
- 10. Django窗體總是顯示錯誤「此字段是必需的」
- 11. zend框架窗體沒有顯示
- 12. Jquery .valid()方法導致窗體在加載時顯示突出顯示的字段
- 13. 窗體:錯誤不顯示錯誤列表,但窗體:錯誤path =「x」工程
- 14. 顯示速度模板上的所有彈簧窗體錯誤
- 15. Django窗體,ModelMultipleChoiceField上的顯示錯誤
- 16. MSAccess 2010 - 子窗體不顯示字段
- 17. Sencha Touch窗體字段顯示間隙
- 18. MS Access窗體字段顯示格式
- 19. Rails窗體顯示錯誤與輸入字段無關
- 20. 窗體顯示
- 21. Kohana 3.2,在窗體中顯示錯誤
- 22. 窗體顯示元素錯誤
- 23. 窗體設計錯誤顯示HTML源
- 24. 在窗體中顯示錯誤消息
- 25. Django窗體不顯示錯誤時空
- 26. .net MVC; HtmlBegin窗體顯示錯誤
- 27. 如何顯示此Django窗體錯誤?
- 28. 在窗體窗體應用程序中突出顯示一個按鈕
- 29. 窗體只輸出錯誤
- 30. VB.net窗體恢復不顯示窗體