Most voted "validator" questions
16 questions
Sort by count of
-
4
votes5
answers3695
viewsRegular expression to find bar
I need to validate a field and it must have the following format: two letters/numbers. Ex.: RN/1234567. The two letters will always be uppercase and the number quantity has no limit.
-
3
votes2
answers1031
viewsValidate jpg file - Laravel 5
I’m trying to use the Validator to validate the upload file type but not sure if the syntax is correct $data=Input::all(); $file = $data["picture_url"]; $rules = array('picture_url' =>…
-
3
votes0
answers2995
viewsValidate CPF and CNPJ
Does anyone know of any CPF and CNPJ validators for Angular 2? I saw a package for Angular 1 as directives, the implementation is the same? package link…
-
3
votes1
answer714
viewsHow to validate at least one mandatory field?
I have two CPF and CNPJ fields, the user must type only one, but never leave the two fields empty. This way it makes mandatory the two fields: [ 'Cpf' => array('required'), 'Cnpj' =>…
-
3
votes2
answers846
viewsValidate checkbox fields with Bootstrap Validator
I’m trying to use Bootstrap Validator in the checkbox fields, but I don’t know how to do it. Is there a function in this library that does this or should I do the validation in pure JS? Code:…
-
2
votes2
answers374
viewsError installing Laravel phplegends/en-Validator
When trying to install the en-Validator via Composer require laravellegends/en-Validator or even editing the Composer file manually I’m encountering the following error:…
-
2
votes1
answer2355
viewsUppercase and Lowercase Letters only and regular expression accents
How to create a regular expression in the right way where only uppercase and lowercase letters are accepted, along with accents? This is to validate a string by name, I created it as follows:…
-
2
votes1
answer128
viewsVariable validate returning wrong answer
I have a 2 check uploads on a form with the validate in the following function: public static function validarComprovantes($request) { $request->validate([ 'pagamento' =>…
-
2
votes1
answer26
viewsW3C error a tag Name - "The name attribute on the img element is obsolete. Use the id attribute Instead."
Hello! I have a banner where it pulls images and functions through Javascript, but when I pass the page in Validator appears the message "The name attribute on the img element is obsolete. Use the…
-
1
votes1
answer1531
viewsValidate password using Laravel
I have the following form My password fields are like this: <div class="form-group {{ $errors->has('senha') ? ' has-error' : '' }}"> <label for="senha">Senha</label> <input…
-
1
votes1
answer331
viewsValidate non-mandatory fields using Laravel Validation 5.8
I would like to validate a field and make that field not mandatory. I know that for him to be obligatory I must wear required but I didn’t use it, since I only wanted to validate an email if it was…
-
0
votes0
answers135
viewsASP.NET and C# - Gridview line obligation
Just as there is in forms of ASP.Net sites the Requiredfieldvalidator, which requires the filling of a field, there is some way to have a mandatory gridview with at least one line? For example, I…
-
0
votes0
answers35
viewsHow to make multiple validations Requests in Laravel?
Laravel allows you to create Requests to validate fields coming from the front end, but I wanted to make several Requests to validate a giant Request. Is it possible? It’s good practice? I made…
-
0
votes1
answer823
viewsValidation of CNPJ in PL/SQL Oracle
I wonder if anyone knows or knows a CNPJ validator in PL/SQL Oracle. Needed the user to put the value in a "dbms_output.put_line" and call a validator. I already got a validator that I will put down…
-
0
votes1
answer269
viewsBindingresult is not working properly with Validation
My goal is to register an older person with a valid name, through validation. The class Person.java: package br.com.Test.domain; import javax.validation.constraints.Max; import…
-
-3
votes1
answer48
viewsHow to pass a locale to Validator.isMobilePhone?
As step one locale pt-BR to the validator.isMobilePhone in my Mongoose schema? According to the documentation I should use an array, something similar to the code below, but the program gives error…
validatorasked 4 years, 11 months ago Fábio Pacheco 113