wordpress-fieldmanager icon indicating copy to clipboard operation
wordpress-fieldmanager copied to clipboard

Validation rules on autocomplete within a group

Open willgladstone opened this issue 9 years ago • 3 comments

'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.

willgladstone avatar Mar 24 '15 21:03 willgladstone

I'm having this issue as well but the autocomplete field is not in a group. Reported in #623.

montchr avatar Jun 22 '17 13:06 montchr

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.

simonrcodrington avatar Apr 12 '18 00:04 simonrcodrington

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.

darylldoyle avatar Nov 02 '22 12:11 darylldoyle