Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox name conflict with Jquery Repeater #397

Closed
OppPMatos opened this issue Sep 13, 2019 · 2 comments
Closed

Checkbox name conflict with Jquery Repeater #397

OppPMatos opened this issue Sep 13, 2019 · 2 comments

Comments

@OppPMatos
Copy link

Hi.

I use Jquery Repeater to duplicate a few fields, but the rule generated by JSValidation doesn't seem to work with it.

The field in question is the following:
<input name="ep_is_default" type="checkbox">

After it being duplicated it now looks like this (First one):
<input name="group-prof_entities[0][ep_is_default][]" type="checkbox">

The rule generated doesn't match any element.
group-prof_entities[*][ep_is_default]

The difference is that "[]" in the element name.

Any ideas on how to fix this?

I've tried to manually delete the "[]" in the generated name, and the rule apparently worked fine.

@garbinmarcelo
Copy link

@OppPMatos did you get any solution?

@bytestream
Copy link
Collaborator

This is an issue with array validation. Duplicate of either #333 or #297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants