No error highlighting on a browser field that is required and left blank #1925
-
I have various simple fields in a twill form that work fine in terms of error validation. Ie, if I set them as required and in the request file and blade file, I get a red msg below the field and the title of the field itself goes red. However with browser fields this doesn't happen. I seem to have the basic request file setup correctly because I can see that the return from the ajax call is indeed an error about my browser field that is not completed but required. The return from the ajax call if I leave a required text fiend and browser field uncomplete is:
Why would this be, how can I troubleshoot this ? Anything obvious to check for ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems that I've fixed this, it was because in the requests file I had no entry in here : public function messages() {
This is still somewhat inconsistent behaviour I believe as the other fields seem to work without an entry in msgs. |
Beta Was this translation helpful? Give feedback.
It seems that I've fixed this, it was because in the requests file I had no entry in here :
public function messages() {
return [
This is still somewhat inconsistent behaviour I believe as the other fields seem to work without an entry in msgs.