You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created modelless Form with file input, added validation for the file and error output in the view.
Also the date inputs are not threated the same as when used with DB. For whatever reason the validation doesn't seem to like the arrays that are returned from the two date inputs. This works fine when working with a form that has a model.
@ADmad OK, we can close the ticket. I've just realized somebody 😡 added a style that hides the error messages. So now I need to apologize for this ticket. 😄
Edit: Well, the issue with the dates remains.
Edit2: Somebody is a bug in Bootstrap that they never fixed... 😠 twbs/bootstrap#29439
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
CakePHP Version: 3.8.x
What you did
Created modelless Form with file input, added validation for the file and error output in the view.
Also the date inputs are not threated the same as when used with DB. For whatever reason the validation doesn't seem to like the arrays that are returned from the two date inputs. This works fine when working with a form that has a model.
I've already checked https://book.cakephp.org/3/en/core-libraries/form.html and https://book.cakephp.org/3/en/core-libraries/validation.html
View:
Controller:
What happened
Error doesn't show up but the field was invalidated:
What you expected to happen
Error message shown.
The text was updated successfully, but these errors were encountered: