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
votes2
answers2425
viewsValidate Name Form
I have a question with validation of Html5, I have little knowledge with regex need to validate a form that get only: Uppercase and minuscule letters, with accents and etc; Whitespace; Can’t accept…
-
1
votes2
answers8469
viewsHow to call php in html and validate a form?
I am validating a form where the user will fill in the fields : Name Surname Email Telephone Message Through these, I want to validate if the user does not type in these fields appears a message…
-
1
votes0
answers27
viewsDxerrorprovider Doubts in the use
How are you? I am starting to use Devexpress components, and would like to implement Dxerrorprovider, which in my case, if the value of the text box is null, or empty, would be displayed the error…
-
1
votes1
answer2430
viewsRails 5 validate CPF
Hello, I’m a beginner in Ror. I have a form with field for CPF and need to validate whether it is valid or not before saving the record. I tried different Gems like: Gem'cpf_cnpj', Gem 'brcpfcnpj'…
-
1
votes1
answer339
viewsError validating date in firebase database
I’m trying to validate whether or not there’s a date in the bank. The situation that occurs is the following, I have a screen with a calendarview, when selecting a date it is displayed in a…
-
1
votes1
answer76
viewsRegex Custom Creation
Hello, I know very little about regex and need to create one that validates the result of a Barcode, I’ve used several sites, but since I have no knowledge I can not do, someone knows how to create…
-
1
votes2
answers3151
viewsCheck if an email exists or your email domain
I need to check in Java if an email or your domain exists. I do not mean to treat the validity of the email, using for example regular expression, but rather actually check if there is an associated…
-
1
votes0
answers320
viewsCPF Hibernate Constraint does not accept valid CPF?
I’m trying to run the Hibernate CPF validation Constraint, but it just seems to reject valid CPF. The same test using Email Straint works normally: EmailValidator validator = new EmailValidator();…
-
1
votes1
answer905
viewsRegistration of users with CPF or CNPJ Laravel 5.5
How do I customize the user registration Laravel in the auth pattern using php artisan make:auth? I need the following clause It is mandatory to insert the field CPF or CNPJ. I found the…
-
1
votes1
answer294
viewsHow to validate a wmsAuthSign hash in php?
I have the following code that creates a hash security for authentication on media servers, would like to know how it could be validated in php itself, media servers should use some logic for this,…
-
1
votes1
answer523
viewsvalidate forms as a function of select
I’m working with Html5 and I need to validate one field of my form according to another. I have a field <select> called Document Type, with three possible options (BI, Dire, passport) and…
-
1
votes1
answer66
viewsHow to set acceptable single values for an Enum property in a Serializable class?
Given a enum as an example: public enum IcmsCst { [XmlEnum("00")] Cst00, [XmlEnum("10")] Cst10, [XmlEnum("20")] Cst20, ... } There is a form of annotation so that I could specify that a certain type…
-
1
votes2
answers1361
viewsForm validation using regex and Javascript
I’m having difficulty validating my form, I’m trying to validate with Javascript, but until now I could not validate all fields. It only validates the field that is last in the code. For example, in…
-
1
votes1
answer3139
viewsAngular 7 - Input validation in a dynamic form
I made a form where the fields (input) appear according to the category to be created. The category is chosen when the user clicks on it, opening a new pro form tab. In the form, you have fields…
-
1
votes2
answers536
viewsLaravel validation if there is a child record
I wonder if there is any default validation that returns an error to the user if he tries to delete a parent record where there are children. I have a table of vehicle types, where I register car,…
-
1
votes1
answer123
viewsThe program is not recognizing whole number as such
a = int (input ("insira um número :")) if a != int : print ("isto não é um numero inteiro") else : print ("seu número foi :"+ str(a)) I’m trying to make a program where the user puts a value and the…
-
1
votes1
answer599
viewsHow to check if an array has an attribute?
I’m using Laravel 5.4 in an application, and a validator method receives a array. That one array can have the attributes: [ 'nome' => $request->nome, 'ddd' => $request->ddd, 'fone' =>…
-
1
votes1
answer188
viewsHow to compare 2 values with YUP
Good morning I have a validation to do with Yup, and I need to make sure the initial interval is not longer than the final interval, anyone have any idea how to do that? I tried to pass the same…
-
1
votes1
answer4837
viewsHow to validate field when losing focus?
How should I call this validation function PIS input when it loses focus? <script language="javascript" type="text/javascript"> var ftap = "3298765432"; var total = 0; var i; var resto = 0;…
-
1
votes3
answers209
viewsPrevent login on a Submit form
I have a page from login made with HTML and CSS and need to prevent login in it with Javascript under certain conditions, but still not caught much the trick of how to do this. I’m looking on the…
-
1
votes2
answers465
viewsjquery.validate.js does not work without form-group (Bootstrap)
The validation of jquery.validate.js only works when the input this one inside <div class="form-group">, for example if I put the code: <div class="row"> <div class="col-sm-12…
-
1
votes1
answer431
viewsKendo Textboxfor allow only numbers in . NET
I don’t want to allow the user to enter characters in my field Textboxfor, and if so, I want to display a message that the field should contain only numbers. My code is below.…
-
1
votes2
answers1203
viewsForm validation with two buttons
I’m having trouble validating a form, but the way I’m trying I don’t know if it’s possible, someone can give me a strength? I have a form with two buttons submit. And on the tag form I’m putting the…
-
1
votes1
answer68
viewsValidation of PHP file
I have a term insertion system via CSV files, example: 09999999;José 08888888;Maria I get this file to move to the server and then I open this file to insert into the database. My problem is that I…
-
1
votes1
answer433
viewsI wanted to validate two input fields with one button
I am the master of a role-playing game and I made a riddle with a website. In this puzzle is to discover two numbers and then know if they are correct and after redirecting the players to another…
-
1
votes0
answers345
viewsHow to block special characters coming from a "Paste"?
I have the following problem, there is a validation being made that way: $(document).ready(function(){ $(this).on("paste", "#email", function(event) { var $obj = $(this); setTimeout(function() { var…
-
1
votes1
answer99
viewsRequest validation via jQuery, Json
I want to do a function that the customer type his order it is checked if it exists in the bank or if it is an invalid request. And I want to return this via Ajax, but I never messed with Ajax,…
-
1
votes0
answers470
viewsHow to limit the upload of an image through its size in pixels?
I’m making an application with Vuejs and I have an image upload input and I want to set an image size limit for upload, not in KB or MB, but rather based on your pixels I mean, only allow the upload…
-
1
votes1
answer345
viewsValidate Radio Button Javascript + MVC Razor
Need to validate if all my Radio have been checked, can you help me perform this validation on JS? My cshtml is mounting the radio’s through a Model List<> . <div id="checklists"…
-
1
votes1
answer27
viewsEvent validating is not working
I have this form: As the person puts the date of birth and clicks on identify category is made two checks: If the name has been filled in; If the date of birth is greater than the current date; But…
-
1
votes2
answers2216
viewsproblem with Jquery-Mask
I’m having a problem creating a mask for a field that should receive both a Cpf and a cnpj it works normal as long as the user does not copy and paste the cnpj, when it copies cpnj to the blank…
-
1
votes0
answers266
viewsAvoid SQL Injection Login Form
Good morning, everyone, I’m new to anti-sql security Injection. I always learned only to validate the inputs and then use them in the query, always with mysqli_query and mysqli_fetch_array. I have…
-
1
votes2
answers63
viewsHow to apply two validations at the same time?
I am trying to create a simple validation of two fields, where I only check whether there is a value or not, but the second if only runs after the first one is checked. I wanted the two of them to…
-
1
votes1
answer440
viewsValidation Message - ASP.NET MVC
Hello, I’m trying to get the message "validation" in ASP.NET in my project 'Cademeumedico' by the Web Development booklet with ASP.NET... However, it is not appearing as it should appear below. Mine…
-
1
votes0
answers402
viewsJava Vehicle Card Validation
Someone already knows how to validate the new vehicle plates? Vehicle plates should start using Mercosur standard 6 months from now Instead of 3 letters and 4 numbers, as it is today, the new plates…
-
1
votes1
answer169
viewsHow to use make:request Laravel to clear the controller
Laravel 5.5 I am using the validations as follows, directly in the controller $this->validate($req,[ 'nome' => 'required|min:10', 'cpf' => 'required|size:14', 'agencia' => 'required',…
-
1
votes2
answers144
viewsHow to treat an empty entry?
I have 4 text entries and a button: <Entry x:Name="Densidade" Keyboard="Numeric"/> <Entry x:Name="Volume" Keyboard="Numeric"/> <Entry x:Name="Area" Keyboard="Numeric"/> <Entry…
-
1
votes1
answer96
viewsProcedures after errors should stay in the services/validations or in the controller?
In a backend that has separate validation functions to check the validity of the data, if this data is invalid the procedure (return a 400 or print something on the screen, for example) must occur…
-
1
votes1
answer231
viewsHow to display Modelstate errors when POST is done by AJAX?
Hi, I’m developing an Asp.net core 2.0 application. I have a div with Asp-validation-Summary for displaying model errors. follow: <div asp-validation-summary="All" class="validation-summary alert…
-
1
votes1
answer65
viewsHow to set a photo upload as a must
I am developing a page, for job applicants can enter and fill your personal information, one of these information is the photo, which has to be mandatory. So I created the following model: { . .…
-
1
votes1
answer139
viewsBug when validating a word limitation field using Jquery validate
I have a form where the user needs to inform the full name of it, so I used the plugin jQuery Validate to make these validations, and also added the additional methods, where there is a function…
-
1
votes2
answers150
viewsRegular expression validation is invalid even when you find a match
I’d like to know what’s wrong with that code. All valid values I enter in the name, email and phone are invalid, even if in the format requested by regex. import re class Contato: def…
-
1
votes2
answers962
viewsValidating null and/or empty fields when creating Java objects
I have an object and would like to force the filling of attributes at the time of the creation of the object. What is the best way to do this? There are the annotations @NotNull, @NotEmpty and…
-
1
votes1
answer98
viewsLaravel - Database - unique data only from the logged-in user id
I’m having a problem in Laravel, in checking the unique data, I want you to check whether data is unique only in user id. I have a table called empresas_cadastradas, and what I want you to do is for…
-
1
votes0
answers34
viewsForm validation with Js
I am working on a form for some time, after validating it I found an error because I can not submit to change page,Besides that after the concert of all errors in the validation the password error…
-
1
votes2
answers120
viewsWhat is the correct place to store the validation messages in a . NET project?
I’m creating a relatively simple class, but I’ve included some validations in its properties. public class Sala : EntidadeBase { #region Enums public enum StatusSala { Disponivel, Reservada,…
-
1
votes0
answers21
viewsHow to manage the prop "disabled" of a multi step form buttons with Formik?
The Formik provides a call prop isValid, which already solves the problem of defining when the form button should be disabled. The problem is that this apparent does not work in a multi step form,…
-
1
votes1
answer2372
viewsArray and string offset access syntax with Curly braces is no longer supported
how to correct this error? Fatal error: Array and string offset access syntax with Curly braces is no longer supported in C: xampp htdocs POO 03 - METHODS STATIC example-03.php on line 64 the code:…
-
1
votes0
answers34
viewsFluent Validation Notnull() method does not work
Hello! I have developed some user registration validations that follow: using FluentValidation; using System.Linq; using System.Text.RegularExpressions; namespace…
-
1
votes0
answers45
viewsLaravel Excel maatwebsite validate spreadsheet before importing to database
I am trying to validate a spreadsheet before importing it to the database, I need to check if there is any date above today’s date in the file, but I can only check the first line and there may be…