alleyinteractive / alleyinteractive/wordpress-fieldmanager

jQuery Validator issues with repeaters

Offen
#843 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
563
Forks
99
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi

I've noticed when using repeaters ('limit' = 0) that there are validation issues when using the **'validation_rules'** functionality. For example if you have a single field that is repeater (a text field) and apply basic validation like **'required'** and **minlength** , the validation wont work on new items.

For example if you add an initial item the validation will work, however if you add subsequent items the validation doesn't trigger. See the image below where the first item works fine but subsequent ones do not

![image](https://user-images.githubusercontent.com/12083338/189027316-212be289-e16d-4a01-a462-5cc529edfcd3.png)

It's super inconsistent. After reloading the page, sometimes the validation for the first item wont work, but it will for the second item. See for example the image below where the validation for the **first** item is now lost

![image](https://user-images.githubusercontent.com/12083338/189026700-534a75e4-2290-498e-a2f3-4d1e9ea04052.png)

Here is how I'm setting up this repeater

![image](https://user-images.githubusercontent.com/12083338/189027077-3fff04c9-229f-486d-afc8-58f522e9b879.png)

I'm using version 1.2.5 which is an older version, is this something that's been fixed in newer versions?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.