Most voted "validation" questions
Validation is used to verify data and ensure it meets certain specifications.
Learn more…357 questions
Sort by count of
-
1
votes1
answer26
viewsError with custom validation with express-Validator
I’m trying to do a personalized validation with express-Validator that must return an error message if the value is different from null and has a different value than 10 characters, and which must…
-
1
votes0
answers35
viewsIs it possible to integrate the express-Validator with the multer?
I am developing an API for study and in this API I have the functionality to add a vehicle, in which I recover the data passed by the user and an image. But as I am using the express-Validator,…
-
0
votes2
answers1098
viewsHow to create dependency validation between fields in Codeigniter?
In Codeigniter there is the possibility to create rules (Rules) validation for each form field, but what I need is a validation between two fields. I explain: The form has a field called url which…
-
0
votes1
answer196
viewsHow to validate the price in Qt?
I would like to know how to validate the price in Qt, as follows: Accepted examples: 10,00 / 100,00 / 1.000,00 = true My code, (but it’s validating true: 10 / 100) bool ok;…
-
0
votes2
answers648
viewsJquery validation in mvc fields
I have a View with some fields, I need to do a validation to check if the field is empty when the user click on a button ex: save, I searched some functions in jQuery no more meets what I need to…
-
0
votes1
answer36
viewsQuestions about Markup Validation errors W3C
This Validator doesn’t bring any information as to where it might be to tidy it up. I know you have Line 233, Column 10, but it could be from anywhere. Is there any method or anything to know how I…
-
0
votes2
answers1007
viewsData validation with mvc Asp.net (edition)
I have a user registration where I use remote validation in the date Annotation to check if the user being registered already exists, my problem is in editing, as I am changing and using the same…
-
0
votes1
answer2637
viewsValidate Date entered by Edittext
I have an Edittext with Mask to input a date. How can I validate whether or not the date exists? Code of my Edittext NascimentoUsu = (EditText)findViewById(R.id.edtdata_usu);…
-
0
votes2
answers25329
viewsThe HTML page is not "calling" Javascript
I have the following problem, I am using Notepad++ as editor, and when I load the HTML page and fill in the CPF data, nothing happens, there is no answer. My HTML page is: <html> <head>…
-
0
votes1
answer866
viewsHow to validate a date on a Datagridviewtextboxcolumn?
I’m creating a form where the user will input data through a DataGridView, one of the columns of this DataGridView is the type DataGridViewTextBoxColumn and it will receive a date, I would like to…
-
0
votes0
answers190
viewsBootstrapvalidator does not work with php running on xampp
I am trying to validate my form with bootstrapValidator, in PHP but the script does not run, but if I do an html file, the file runs. <!DOCTYPE html> <html lang="pt-br"> <head>…
-
0
votes1
answer58
viewsIs the Regexp validity test correct?
I am trying to validate a password through Regexp, in javascript, but it only returns false when it should actually return true, for having given match value, someone would know if there is…
-
0
votes2
answers5542
viewsHow to validate a zip code using jQuery.validate
I am not able to validate a ZIP code typed by the user. I added the following code within the jquery.validete.js jQuery.validator.addMethod("cep", function(value, element) { return…
-
0
votes2
answers360
viewsHow to validate in HTML forms
How mandatory fields are made in HTML forms (those that commonly use an asterisk * to indicate mandatory)? There is a parameter directly in the tag input? If not, how is the validation done (for…
-
0
votes1
answer527
viewsFormat HTML5 Input Calendar with javascript
I’m making a form with HTML5 validation and I came across a slightly bad situation when I put for example type="date" when I hover the mouse above, the "little arrows" appear to manipulate the date…
-
0
votes0
answers296
viewsThe implementation of Beanvalidation is not working
Greeting to all, please note the XHTML page; <ui:composition template="/WEB-INF/template/LayoutSystem.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"…
-
0
votes1
answer75
viewsBD Access, Data field
In an Access BD with a "Data" field, when entering data in this field, is it possible to do something so that dates passed 3 days ago are rejected? If possible, please teach me! In fact, I only…
-
0
votes1
answer65
viewsAccess Database, Record Duplication
In a BD Access with fields ID (Automatic Numbering), EMPLOYEE, DATE, QUANTITY, the data is collected daily (in a single message) via Outlook. So, is it possible to prevent the same employee from…
-
0
votes1
answer24
viewsE-mail validation via Pattern
I would like to define the Pattern of a field so that it always validates the emails typed in the format : [email protected] @Html.TextBoxFor(m => m.UsuarioEmail, new { @class =…
-
0
votes3
answers9343
viewsCheck if a date is valid
I’m getting a date in format: string: "01/03/2010 23:00" How can I verify that this date is valid? By validity, disregard questions of days or months being with wrong numbers. The validation would…
-
0
votes0
answers37
viewsMysql: Find errors using WHERE IN
I have the following situation with the tables below. I need to do some checking in "serials" (if the serial exists, if it is valid, etc, and other validations next to other tables) from several…
-
0
votes1
answer1626
viewsArray to string Conversion, Orange Validation
I have the following code: HTML: <form method="POST" enctype="multipart/form-data" action="/admin/dashboard/category/{{$action}}"> ... <fieldset class="form-group"> <label…
-
0
votes1
answer298
viewsDate validation with Dataannotation
I wanted to know if you have how to validate if the Date entered is higher or not than the current date using Annotation, or if I have to deal with the same controller. If you can, please provide an…
-
0
votes1
answer176
viewsHow to restrict formats in c#’s textbox
I’m new to programming and I have a very simple question. I am doing a practical work in college and in 4 textbox should be treated the consistencies of the notes and I wanted to restrict the…
-
0
votes1
answer552
viewsI need to validate an input Mask from the Ninja Forms phone form
I am using Ninja Forms as my contact form plugin. I am currently using a Mask input to force the typing of numbers. But I need the validation to happen for the field of the phone reach 10 full…
-
0
votes1
answer49
viewsMy application saves blank data, I would like validation to prevent saving empty fields
I would like my Edittext field validations to prevent saving null fields. I am beginner in the area and ask for everyone’s understanding. Thank you very much. import android.app.Activity; import…
-
0
votes3
answers114
views"content: attr" does not validate in W3C
How to resolve this error on the line table td:before {content: attr(db); which makes it worthless in the W3C? <!DOCTYPE html> <style type="text/css"> table {width:100%; border-collapse:…
-
0
votes1
answer115
viewsProblem with Javascript validation
I would like a help to know what’s wrong with this validation: if(qtdemp=5 && func1.value.length == 0 || cpf1.value.length == 0 || func2.value.length == 0 || cpf2.value.length == 0 ||…
-
0
votes1
answer336
viewsValidation with AJAX in Laravel
Talk personal, I would like to know how to make validations with AJAX in Aravel, I have tried several ways and it does not work, not put the code because I had given up there I have no more rsrs...…
-
0
votes0
answers48
viewsDraw form
I need a simple form with fields for (name and phone). Below a list with numbers from 1 to 100, for example. The user fills in the form and after "Submit" I receive an email with the information and…
-
0
votes2
answers390
viewsjQuery validate input characters
I am doing a function activated by input onkeydown, which should check the given characters one by one, and only allow input of those that are valid, this must happen before the characters are shown…
-
0
votes1
answer117
viewsBootstrap Validator does not validate select with php data
Good I have in my form field select which is populated with data coming from the database, but with the use of Bootstrap Validator, it does not validate correctly, now if I take the code PHP it…
-
0
votes2
answers190
viewsJavascript validation is not working
I’m stuck in a jam. I made an html form and created a javascript document, but the function I created does not work (as if it was not called) I tried several things and I still can’t. Here are the…
-
0
votes0
answers3820
viewsValidate password with confirm password
I am trying to validate my password more accurate that is identical to the password confirm field, I am validating in php and using ajax to show error if the input value is incorrect. I have tried…
-
0
votes1
answer28
viewsResend form and validate again after validation failure
Hello I have a form in which all fields are being validated by jquery, however when the validation fails and shows the messages I can’t resubmit and keeps showing me the error message Follow the…
-
0
votes1
answer637
viewsValidation of the update in the Standard
I have a problem to validate the update on Laravel. My Controller is like this: public function editar(EspecieRequest $request, Especie $esp) { $especie = Especie::find($esp->id_especie);…
-
0
votes1
answer103
viewsAutomatic validation of inputs
I am creating a login area and came to me a question: I wonder if there is a way to check in my database if the email entered in the registration field is already in use on my site, but I want this…
-
0
votes2
answers1675
viewsValidating Login
I’m trying to log in, but I’m not able to do one thing. I first check that the user and password fields are filled in. So far so good. I then check that the password and the user are correct. And in…
-
0
votes1
answer721
viewsAlgorithm to validate CNH
Hello, I need to validate CNH in Ruby, but I can’t find any code and no reference to the validation rule. Does anyone have any of this information? thank you
-
0
votes1
answer62
viewsExternal employee registration Validation mysql php
I want to register external employees in a mysql database using php. Each employee has to have in his possession an access credential where it appears: Company, Validity of credential, validity of…
-
0
votes1
answer186
viewsBigdecimal - set to null by form when input is empty
I have a form (jsf/primefaces) where a value of the kind BigDecimal, can be submitted without value. In this case, its value should be null. However when set is as 0. There is an argument that is…
-
0
votes0
answers33
viewsWrong output, I put a valid password and does not work
return: string 'invalid password, only letters and are accepted numbers' (length=55) class Validapass { public function setValidapass($pass) { if (strlen($pass)<1) return 'escreva a password';…
-
0
votes1
answer5007
viewsValidate birth date field with javascript
I got a field like date, by name txtdata_nasc. I need a validation for it. I need you to have a button next to it that can validate it. If a person enters a birth date under 18 years of age, I want…
-
0
votes2
answers634
viewsHow can I check if the browser supports HTML 5?
How to check whether the browser supports HTML 5? For example, I would like to set a form field as required. I can use the parameter required: <input type="text" required> But I saw that…
-
0
votes0
answers170
viewsError in Laravel 5.7 validation messages
I am working with Laravel validation messages, but always this returning me "validation.min.string", I stopped importing something? Controller $this->validate($request, [ 'telefone' =>…
-
0
votes1
answer265
viewsvalidate 2 recaptchas in memsa page by ajax
Speak blz guys ? I need a help implemented on the same page 3 recaptchas. <form id='form1'><div class="g-recaptcha" id="Login" data-sitekey="minhakey"></div></form> <form…
-
0
votes1
answer488
viewsHow to change the validation error language in HTML5?
Is there any way to change the language of the validation error of minLength? Obs: when I try to give Ubmit in a field "required" empty, appears the message Preenche este campo! in Portuguese.…
-
0
votes1
answer36
viewsHow to validate a field that depends on another to be mandatory in Symfony?
In Laravel there is a validation required_if, I say that a field will be mandatory only if another field is informed. I need to do the same type of validation using the FormType from Symfony but I…
-
0
votes1
answer23
viewsMacro and VBA that deletes the oldest records, if they are the same value
Talk, guys, I’m new here and I’m desperate for some help. I need you to delete the oldest records from a list of multiple trips, keeping only the latest of them. The print below makes it clearer. In…
-
0
votes1
answer32
viewsre.search also validates invalid emails
I’m having some problems with this email validation. Any text I put in it validates and accepts. What causes this? import re def email_validation(email): regex =…