I’m using formit with a multiple select input field with the name of name="classList[]" so all selected values are passed in an array. Now how can I retrieve those values in my posthook?
$hook->getValue('classList[]'); didn’t work, but that was to be expected, I guess.
I found this older thread with the same question, but unfortunately it never got answered.
After further investigation, I found that I was using getValues() instead of getValue() (from fetching other inputs) so that’s why it probably didn’t work with the array. Now I can iterate through the values just fine.