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

[Form] Verify multiple fields with one settings object #829

Open
Raywin88 opened this issue May 6, 2014 · 6 comments
Open

[Form] Verify multiple fields with one settings object #829

Raywin88 opened this issue May 6, 2014 · 6 comments

Comments

@Raywin88
Copy link

Raywin88 commented May 6, 2014

i am trying to use only 1 identifier to get the error like below

(code not appear?)
once i click submit, it will show 4 error, but once one of the text have value, the form is success.

please check here http://jsfiddle.net/BqgqH/3/

@jlukic
Copy link
Member

jlukic commented May 9, 2014

Hi thanks for reporting, your test case was very useful. This is a bug.

@jlukic jlukic added the Bug label May 9, 2014
@jlukic
Copy link
Member

jlukic commented May 9, 2014

This will require a bit of a rewrite, im not very proud of how some bits of current validation is written

See #224 and this thread

@Raywin88
Copy link
Author

Thank in advance!
The validation in future is amazing, it will save a lot people time.
If you need any help or test on the new validation please do let me know :)

@jlukic jlukic added Enhancement and removed Bug labels Jun 14, 2014
@jlukic jlukic changed the title Verify multiple text with only one data_validate Form - Verify multiple fields with one settings object Jun 18, 2014
@jlukic jlukic changed the title Form - Verify multiple fields with one settings object [Form] Verify multiple fields with one settings object Jun 18, 2014
@awgv
Copy link
Member

awgv commented Jun 16, 2017

This thread is old, here’s a fresh test case from #5469:

Check this JsFiddle:

http://jsfiddle.net/4mpb7cfx/183/

if you submit, both "Can't be empty" fields get marked as error. If you correct only the first one, both stop throwing error and it returns true. If you correct only the second one, none of them is unmarked as error.

If you write something in the first field and then submit, it ignores the second "notempty" field.

Checked in Firefox Developer 54.0b14 and Chrome 58.0.3029.110

@stale
Copy link

stale bot commented Feb 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 23, 2018
@stale stale bot closed this as completed Mar 25, 2018
@awgv awgv reopened this Mar 25, 2018
@stale stale bot removed the stale label Mar 25, 2018
@lubber-de

This comment was marked as spam.

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

No branches or pull requests

4 participants