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
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
When I submit an invalid option, I get this from $form->getMessages():
array (size=3)
'status' =>
array (size=2)
'notInArray' => string 'The input was not found in the haystack' (length=39)
0 =>
array (size=1)
'notInArray' => string 'Invalid status' (length=14)
Since Explode does not acknowledge a message option and when I set disable_inarray_validator to true I still get:
'status' =>
array (size=2)
'notInArray' => string 'The input was not found in the haystack' (length=39)
0 =>
array (size=1)
'notInArray' => string 'Invalid status' (length=14)
From what I can tell, Explode is a utility to help process validators rather than being an actual validator. But in using it, it breaks validation messages so my standard code for processing form validation messages does not work.
The text was updated successfully, but these errors were encountered:
I am using the following array notation in my form creation for a single select element:
When I submit an invalid option, I get this from
$form->getMessages()
:Without the Explode layer in the validators,
$form->getMessages()
reports this when invalid:Since Explode does not acknowledge a message option and when I set
disable_inarray_validator
to true I still get:What I am expecting to get is:
From what I can tell, Explode is a utility to help process validators rather than being an actual validator. But in using it, it breaks validation messages so my standard code for processing form validation messages does not work.
The text was updated successfully, but these errors were encountered: