Invalid Input Error Message
Contents |
provide default error messages. To override the default message, create or bootstrap error message edit a global resource bundle, andadd an entry corresponding to the field The "message prefix" is invalid.fieldvalue. To create a message entry, append the field name to the prefix. For example, a field named user.dob would use the entry invalid.fieldvalue.user.dob. invalid.fieldvalue.user.dob=Please enter Date of Birth in the correct format. Generated by CXF SiteExporter
have one thing in common; if a
This repository Watch 4,414 Star 52,805 Fork 26,040 angular/angular.js Code Issues 672 Pull requests 180 Projects 0 Wiki Pulse Graphs New issue Error message is not hidden when invalid input is removed #1572 Closed ghost opened this Issue Nov 14, 2012 · 12 comments Projects None yet Labels component: forms frequency: moderate severity: broken expected use type: bug Milestone Backlog Assignees No one assigned 10 participants ghost commented Nov 14, 2012 Hi I have posted a problem on the mailing list and Peter Bacon Darwin advised me to create a bug for that. He also mentioned that #1509 was similar to my problem, but it does not solve it. link to the mailing list question: https://groups.google.com/forum/#!topic/angular/Hao7k4xxhIU The Problem: I have a form that containts a list of inputs. The inputs are required so the form is invalid when an input is empty. The inputs can be added and removed. When I add a new input it is empty by default. Thus the form gets invalid when an input is added and an error message appears that all inputs are required. So far it works. But when I remove a empty input, the form remains invalid and the error message does not disappear. You can see the code in the following fiddle. http://jsfiddle.net/VPCfk/32/ This was referenced Nov 25, 2012 Closed $watch on form.$invalid not triggered when control removed #1379 Closed form.$invalid: true after ng-repeat array shortening #1312 Closed form.$invalid not updated correctly #970 apolishch commented Jan 21, 2013 Any idea of when this might end up getting fixed/suggestions for a workaround? cj commented Jan 27, 2013 Wondering the same. Dolmio commented Feb 12, 2013 I'm new to the Angular so take everything with a grain of salt. I believe that the problem is that the ng-show expression "showErrorForRepeatedItem(form