creativedotdesign / tofino

WordPress boilerplate theme on a modern stack. NPM and Composer.
Other
29 stars 6 forks source link

Update validation for multiple fields with the same name / array based field naming #190

Closed danimalweb closed 7 years ago

danimalweb commented 8 years ago

Enable validation on inputs / checkboxes with an array as the name.

<input type="text" name="field_name[thing1]"> <input type="checkbox" name="checkbox_name[thing]">

AjaxForm class should be able to validate and identify the exact field for server side validation.

JS will need to be updated too.

danimalweb commented 8 years ago

Possible validation revamp: https://www.sitepoint.com/validating-your-data-with-respect-validation/ https://github.com/Respect/Validation