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
method to validate single field #393
Comments
yes |
Validate validates the entire form, not a single field. On Wed, Jun 6, 2012 at 9:50 AM, Olivier Refalo <
|
it doesn't, get the master - it's in the doc
cheers |
My bad. But I still can't get it to work right. My field validation (email address field), uses required, custom[email], validate returns immediately before the server responds so: alert($(this).parent().parent().find('.email').validationEngine('validate')); always returns false. Is a callback available for the validate method? On Wed, Jun 6, 2012 at 9:55 AM, Olivier Refalo <
|
yes, its in options. please read the doc |
I'm trying to understand the doc. I have loaded validationEngine after the dom has loaded: $('#personalProfile').validationEngine({ajaxFormValidation: true}); Then when I want to validate a single email field: $(this).parent().parent().find('.email').validationEngine('validate', The ajax request is sent to the server (but only as a result of entry in Can options only be added with 'init' or 'attach'? On Wed, Jun 6, 2012 at 10:37 AM, Olivier Refalo <
|
$("#date").parent().validationEngine('showPrompt', '*date field is required'); |
this post is old but i can see that answer to Robhicks issue has not been given. i had faced the same issue and had spent alot of time finding its solution.
i guess if we just return an empty json array it will still work or may be we dont need to return anthing but just existance of this function is necessary.... this is subject to hit and trial. |
why u send it 2 me??? On Sat, Jan 31, 2015 at 8:42 AM, omairrazam notifications@github.com
|
lols… i just replied on a forum … There was an issue discussed a few years back but no one replied the correct solution. so thought although post is too old but may be in future my answer might help someone.
|
heheheh ok On Sun, Feb 1, 2015 at 6:02 AM, omairrazam notifications@github.com wrote:
|
hehehhee
|
are u facing problm in validation of single field? On Mon, Feb 2, 2015 at 6:23 PM, omairrazam notifications@github.com wrote:
|
yes
|
i also had same problm.tdz y post solution.didn't it help u? On Mon, Feb 2, 2015 at 9:54 PM, omairrazam notifications@github.com wrote:
|
actually my issue was little different…. i understand validation engine a lot well now but i was using it with jtable and was having issues while using asynchronous ajax calls. when i was brought to your form, my issue was not stated there but there was a person's issue that was not answered and i knew the solution, so i posted my solution there. On Feb 3, 2015, at 10:00 PM, lubnashaikh notifications@github.com wrote:
|
Is there a method to validate a single field?
Here's a real world scenario. A user profie editor. The user can add as many email address as the user wants. One of them needs to be the default email address for the user. The user is presented with a link to make an email address the default email address. When the link is clicked, the email address field needs to be validated. It is not important to validate the rest of the form. In fact, it clutters up the screen.
The text was updated successfully, but these errors were encountered: