wordpress-fieldmanager
wordpress-fieldmanager copied to clipboard
Validation rules on autocomplete within a group
'validation_rules' => 'required' does not work for autocomplete within a group. Didn't test if it's an issue with autocomplete as a whole or just specifically within a group.
I'm having this issue as well but the autocomplete field is not in a group. Reported in #623.
I'm also having issues with this. Validation doesn't seem to work for the auto-complete field. E.g if I have two fields in a group (one auto-complete and another text field), when I apply the validation rules, the error states are appended to the other element not the auto-complete field.
when I apply validation to regular fields (textarea, text, select) it all works as I expect, with the error label and state being applied to the right element.
I came across the same thing in #842.
https://github.com/alleyinteractive/wordpress-fieldmanager/pull/748 was opened to fix this issue but it seems it never got merged.
https://github.com/alleyinteractive/wordpress-fieldmanager/commit/3bb29849d90b75485400888c1d1171a46d25e814 is the specific change that needs making.
As there are no filters to change the ignore patterns, it's not something that we can patch within our own codebases.