CI4 validation, obtain an error on a field other than the controlled one |
(10-17-2022, 02:26 PM)kenjis Wrote:(10-17-2022, 08:34 AM)serialkiller Wrote: Is there any way, direct or indirect, to check the "foo" field, but report the error in the "bar" element? Hi kenjis, my problem is that bar is not a field but a div i tried this way, it works, but i don't know if it's the best way PHP Code: $errors = $this->model->errors(); If I have an error on the foo field, I change the errors array key from foo to bar |
Messages In This Thread |
CI4 validation, obtain an error on a field other than the controlled one - by serialkiller - 10-17-2022, 08:34 AM
RE: CI4 validation, obtain an error on a field other than the controlled one - by kenjis - 10-17-2022, 02:26 PM
RE: CI4 validation, obtain an error on a field other than the controlled one - by serialkiller - 10-18-2022, 12:40 AM
|