Giter Site home page Giter Site logo

bvalidator's People

Contributors

bmauser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bvalidator's Issues

Not able to negate in Regex Pattern

Hi bmauser, I'm trying to validate phone number I don't want user to enter 9999999999 so I'm using regex[!(9999999999)] . But its not working. I also tried regex[^(9999999999)] but its not working. Please help me out with this. I cant attach custom function to validate as form data comes in dynamically to the angularJS view.

Ajax validation doesnt work correctly

Hello,

Basically, I'm trying to implement one of the examples with ajax validation, but no matter what is the result it always does show the validaiton-ajax message, that its wrong.

I have a form which has data-bvalidator-option-ajax-url="getRecordId.action" in the header of the form.

Than I have input <input id="recordId" name="recordId" type="text" value="$!citizen.recordId" data-bvalidator="digit,ajax,required" data-bvalidator-msg-ajax="The number does exist in the DB. ENter new number" data-fordraft="digit,required" data-bvalidator-modifier="myDigitsModifier"/>

When I type any numbers, doesnt matter it does exist or no, it always shows a message that The number does exist in the DB.

I do return a simple JSON from the server:

  • if it does exist I return {"recordId":"false"} which should mean that it does exist and it should not be validated.

  • if it DOES NOT exist I return {"recordId":"ok"}, which should be validated as OK... but it still gives me an error message that number doest exist.

Any help is appreciated

Error message appears twice

If the input tag have the the type="text" it's ok.
But if the input tag have the type="email", the error message appears twice like this:

Please enter a valid email address.
Please enter a valid email address.

The input element:
<input name="email" type="email" id="email" data-bvalidator="required,email" placeholder="E-mail">

bvalidator

bower package

Hey,it would be really helpful if you make this available as a bower package

Hidden elements cannot be validated

Title pretty much says it all. Hidden elements are skipped when bValidator is initialized on the form. Libraries like Chosen set the select to display none, meaning the element will not be validated.

I forked and updated the code to add a new option to bValidator here: https://github.com/ckihneman/bValidator

It is hidden away pretty well behind the new option, and could help some people out. Consider merging it in via #2 . Here is a thread of some people running into this same issue.

Can't enable/disable for multi instance bvalidator

I do have 2 instance of bvalidator on my form and 2 buttons. One saves the form when its partially validated the another saves the form when its completely validated. When its completely valitdated it works fine. But when I want to disable the first instance and run the second instance it doesnt work. It does destroy the whole bvalidation instance, instead of destroying only its first instance. More on SO:
http://stackoverflow.com/questions/38090941/how-to-enable-disable-the-2-instance-of-bvalidator

I really would be much appreciated if this can be fixed, or its me doing something wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.