[SOLVED] Multi-Select or Arrayed Values Validation |
I've tried the following two pieces of code (I've hardcoded the "passed" values into the run method for the sake of clarity):
PHP Code: $validation = \Config\Services::validation(); AND: PHP Code: $validation = \Config\Services::validation(); The idea here is that a user is selecting multiple values in a drop down and submitting them via form. However, the return call is always being executed denoting an error. How do I create a rule that validates an array of values for one field? The following works, but appears an inelegant solution: PHP Code: $validation = \Config\Services::validation(); |
Messages In This Thread |
[SOLVED] Multi-Select or Arrayed Values Validation - by grimpirate - 04-19-2023, 10:00 AM
RE: Multi-Select or Arrayed Values Validation - by kenjis - 04-19-2023, 05:45 PM
RE: Multi-Select or Arrayed Values Validation - by grimpirate - 04-21-2023, 08:04 AM
|