Fluent Validation When Enum Not Working

I'm trying to use Fluent Validation in my ASP.Net MVC Core project and I can't get validation to work when using Enums with a When clause. I realize that When clauses aren't supported client side but it's not working server side either. Below is my v...
more »

2017-08-19 23:08 (0) Answers

Client and server side validation in Meteor JS

So I'm using Meteor's 'methods' to transmit data between the client and server. Is there a recommended pattern for validating data? I've seen SimpleSchema used on the server like this a bit Lists.schema = new SimpleSchema({ name: {type: String}, ...
more »

2017-08-19 19:08 (3) Answers

google's recaptcha 2 validation - how to do it

Ive got problems with google recaptcha verification. Thats what I have in my form register. <div class="g-recaptcha" data-sitekey="mySiteKey" data-callback='validate'> </div> I know that I have to verify on both sides. On client side I...
more »

2017-08-19 13:08 (0) Answers

laravel how to validate as equal to a variable

in laravel validation (registering) i want to compare one of the fields with a php variable (it should be equal with that) how can i do this? protected function validator(array $data) { return Validator::make($data, [ 'name' => 'req...
more »

2017-08-18 20:08 (1) Answers

Form Validation not working as expected

I have made a cart-mechanism using PHP and done validation with the help of JavaScript and the validation is not working. This is my actual php script: $result = mysqli_query($conn, "SELECT * FROM products"); while($row = mysqli_fetch_array($result...
more »

2017-08-18 16:08 (2) Answers

Custom Validator Angular 2

I've written a web api function that takes a username from the textfield and checks if the username is already taken. To know if the username is available or not, my server returns Y if it is available and N if its not. To validate the username, I'...
more »

2017-08-18 10:08 (1) Answers

Time Validation in Javascript

I'm working on time and validation in javaScript, in this validation the time is entered by the user and validate through the conditions, date gets validate easily but time is not getting validate my code is : HTML <input type="date" id="date-in...
more »

2017-08-18 08:08 (1) Answers

JS Form Validation not picking up date input

Please can someone assist with my issue. I have created a form using the first example following the tutorial below: http://twitterbootstrap.org/bootstrap-form-validation/ My HTML Code snippet for the date field is below: <div class="form-grou...
more »

2017-08-17 23:08 (1) Answers

How to create Custom Captcha in HTML and PHP

Every time in form submission and to stop spam data entry, we use captcha for stop spam enteries. There are lot of captcha available but I am try to create my own captcha with custom code with html and jquery. jQuery( document ).ready(function() { ...
more »

2017-08-17 19:08 (1) Answers

Refactoring business logic validation

I'm trying to refactoring this code private void validate(Customer customer) { List<String> errors = new ArrayList<>(); if (customer == null) { errors.add("Customer must not be null"); } if (customer != null &...
more »

2017-08-17 17:08 (2) Answers

php validation form does not send email

I am trying to make an HTML form work. My frontend code is this: <form action="/form_validation.php" target="_blank"> <p><input class="w3-input w3-padding-16" type="text" placeholder="name" required name="name"></p> ...
more »

2017-08-17 16:08 (2) Answers

Scala Play! Form Validation With 2 Radio Buttons

I have created a Scala Play program and would like to incorporate two radio buttons onto the same form. Neither radio buttons are set a value when the page is loaded. The options for both radio buttons are either yes or no. I would like to know h...
more »

2017-08-17 15:08 (2) Answers

Parsley JS force Field to fail validate status

I'm validating a form using parsley JS. When user register on the system, System checks whether his police_id is exists in the system or not. Here that AJAX Jquery code. //police_id $('#add_user input[name=police_id]').keyup(function (e) { $('...
more »

2017-08-17 14:08 (0) Answers

wpf DelegateCommand and ValidationRules

i have have the TimePicker and validation rules <controls:TimePicker Grid.Row="0" Grid.Column="1" Culture="Ru-ru" Margin="5,5,5,2.5"> <controls:TimePicker.SelectedTime> <Binding Path="EditTimeStart" Mode="T...
more »

2017-08-17 14:08 (1) Answers