Most voted "validation" questions
Validation is used to verify data and ensure it meets certain specifications.
Learn more…357 questions
Sort by count of
-
0
votes1
answer977
viewsUpload validated files by php
I have a script simple of upload of files by PHP. This upload moves the files, which should be images, to a folder. I can only accept images jpg, png egif`. I just realized that there are images…
-
0
votes0
answers77
viewsValidation Validationsummary in a modal receive Json message
My application has a View Create which is opened through a modal and the Controller which was a Actionresult became a Jsonresult then return Json after the request [Httppost]. The [Required] Field…
-
0
votes1
answer10
viewsChange language of Validation Bean messages to PT_BR
Hello, how do I change the language of Validation Bean messages to PT_BR? I want to force the default messages of Bean validation to be in PT_BR.
-
0
votes2
answers322
viewsEmail validation php error
I am validating the email field of my form and in order to validate the e-mail structure I need help. When it does, I don’t want it to send the information to the database, I want it to give false…
-
0
votes3
answers300
viewsHow should I deal with mistakes?
Read a vector A with 12 elements. The vector must accept only the input of values that are divisible by 2 or 3. The input of values in the vector must be validated by the program and not by the…
-
0
votes1
answer127
viewsHow to set maximum size of 2 textfields separately (Swift)
Next, I’m starting now with Swift and iOS programming. I have a question: how to validate 2 different textFields? For example, I managed with the code below to validate 1 single field, but the…
-
0
votes3
answers10624
viewsSuccess message after filling the form with HTML and PHP
I am creating a simple customer registration through a form. However, I am unable to place a "Successfully Registered" message on the same page of this form. The validation of this form, before…
-
0
votes1
answer400
viewsValidate more than one input CPF field
I have this script for CPF validation. But in my form, there is more than one field that requires CPF validation, within a table that adds as you press the add button. How should I make the script…
-
0
votes1
answer34
viewsHow do I value a value passed by Set?
I wanted to know how do I add a new value to length and width through setLength and Setwidth, and this value goes through validation ((x > 0 && x < 20)? x : 0): public class Rectangle…
-
0
votes1
answer241
viewsTaglib - Condition test between JSP and MODEL
I am trying to make my JSP (index.jsp) execute a condition (if) with taglib, to decide which menu it will import, depending on an attribute (Boolean)) that is in the model (user.java). I have…
-
0
votes1
answer1635
viewsPassword Validation Android Studio
On one screen I register the password (sign up button) and on the other screen I need it to be validated for the application to turn off (turn off button). I have tried several ways, but I can not…
-
0
votes1
answer56
viewsHelp with javascript field validation?
Friends what is happening is that it is passing spaces and repeated numbers, I do not know what to do :P <form name="form" id="form" action="passo_01.php" method="post" onSubmit="return…
-
0
votes1
answer220
viewsValidate form with equal name[] and id
I have a dynamic form, where can appear several textarea, and by default, these textarea has the same id and the same name, however, the name is being sent as array (name="nomecampo[]"). I wanted to…
-
0
votes1
answer864
viewsError validating android Studio field
Good morning Everybody, I’m making the following mistake: When trying to validate my fields by clicking the sign up button, the same does no action.. I’m new with android and would like a help.…
-
0
votes1
answer528
viewsValidation of Jquery/Ajax/PHP fields
I read some questions here on sopt, but I couldn’t find what I wanted. I made a basic validation with ajax and jquery that is working, but there is an unforeseen. Are two camps: email and team. HTML…
-
0
votes1
answer262
viewsField validation in Lumen 5.5
In Lumen version 5.2 the following validation in the Controller is working: $this->validate($request, [ 'nome' => 'required', 'email' => 'required|email', 'cpf' => 'required', ]); Iofc…
-
0
votes1
answer1089
viewsValidation Can you compare 2 fields not to repeat in the database?
I need a if to check 2 values of the register and 2 of the bank, if both are equal should not occur the register. <div class="container-fluid"> <form action="adiciona" method="post" >…
-
0
votes1
answer952
viewsValidate user typed only number - C
I have a string declared as follows: char cpf[12]; I want to validate that the user typed only numbers when he typed ENTER. I captured the value typed by the user like this: gets(cpf); Soon after, I…
-
0
votes1
answer663
viewsLogin information validation does not work
Doubts are throughout the program import string alphabet = list(string.ascii_lowercase) n = range(0, 10) name = input('Digite seu nome de usuário:') if name in n: while True: print('Apenas letras…
-
0
votes1
answer71
viewsdisabling Jquery keyup button
I’m making a password validator. I made a method to validate if the password requirements are not met the save button is disabled, if they are answered the enabled button, but it did not work..…
-
0
votes1
answer309
viewsValidate form
I’m developing a mobile application in android studio and I’m having difficulty implementing the validation of form input fields. Can someone explain to me why I can’t validate? Form class: public…
-
0
votes0
answers360
viewsSecurity in checking and validating user with PDO:PHP
I want to create a panel with a secure login environment, using PDO as a validation. To explain, I am using the IPB forum database, basically I want to take advantage of the same forum user and…
-
0
votes1
answer79
viewsHow to make an Annotation data validator based on another field?
I’m trying to implement a validator based on another field. My class of domain. [Required] public string _tipoDeControle { get; set; } [NotMapped] public TipoDeControle TipoDeControle { get { return…
-
0
votes2
answers906
viewsEmail validation together with password with jQuery
I need to put out an APB when "all’s well" on my form. The situation is that I need to check without the email has "@" and "." and also along with this if the two password fields have equal values.…
-
0
votes0
answers4902
viewsCan you input masking and validation in React?
I am using several different Components and trying to integrate them. In this example here I used React-input-Mask and React-material-ui-form-Validator, I am using the material-ui inputs. Does…
-
0
votes0
answers106
viewsValidating tr tags in a table with React
I have two components. The first is the parent and the second is rendered in the parent as tr tags, as lines in a table, they need validation. Because the tds tags contain inputs that need to be…
-
0
votes0
answers909
viewsIonic 3 Masks and CPF Validation
Good afternoon guys, I’m making a PWA app with Ionic 3 and I need to insert some masks in forms and validate the user’s CPF. I have tried various forms and libs, but have not succeeded in any. Could…
-
0
votes1
answer161
viewsValidate 2 or more emails in an input
I have a registration that validates the email event focusout in Input. That validation works perfectly. Now the need has arisen to validate multiple emails within the same Input, separating by ";"…
-
0
votes1
answer159
viewsHow to do the unit test in the Validator class in an Laravel form?
A good day gentlemen. I am a programming student, at this time I am studying how to perform unit tests using the Laravel 5.3 In my tests I came across the following problem: My small system only…
-
0
votes2
answers305
viewsValidationresult with two parameters
I am trying to use custom validation as explained in this link, but then I can only pass one parameter to validate, and I need both, because if the field is empty and the other is false, it has to…
-
0
votes1
answer51
viewsCustom validation function Html5
I wonder if there is any way to override the function that makes the validation of a field in Html5, I notice that the browser’s implement in an elegant way a floating alert, I wish to have a custom…
-
0
votes1
answer252
viewsValidate Datepicker containing date only
I use Asp.Net Core MVC (Razor + Jquery Validate + Unobtrusive). I display in a Datepicker only the date part of a Datetime field through the following code in my Viewmodel: [Required(ErrorMessage =…
asp.net-mvc asp.net-mvc-5 validation jquery.validate unobtrusiveasked 6 years, 1 month ago Braytiner 176 -
0
votes1
answer57
viewsError creating custom ASPNET MVC validation ( Client Side )
I’m having a problem creating a custom validation using dataannotations by aspnet mvc. My Model: public class Usuario { public string Nome { get; set; } [Idade(18)] public string Senha { get; set; }…
-
0
votes2
answers158
viewsField Validation in html and php
I would like a help to validate a field in the form to check if there is already a same email that the user type in the database. When the user clicks on the "register" button he will send directly…
-
0
votes1
answer487
viewsHow to block retroactive dates in input datetime?
I have a form with a input of the kind datetime-local and I need to block the insertion of retroactive dates, how do I do this? <form name="F1" id="edit-profile" class="form-horizontal" action=""…
-
0
votes1
answer91
viewsCodeigniter validation error
I am trying to correct validation problems of my code, at first I did the test only with the label "Name", where it is required and can not contain numbers or characters, but this registering ALL.…
-
0
votes1
answer136
viewsHow do I validate access to an API for only the licensed domain?
I’m looking for original ideas on how to validate access to a php API for only the domain that paid for the license, since SERVER['HTTP_REFERER'] unreliable. I created a json activation key and…
-
0
votes1
answer51
viewsHow to check if a code contains 3 letters and 4 numbers in this order?
I am assigning the return of the function checks code to a flag. The idea is to make the flag trigger the loop if the code is incorrect char *leValidaCodigoAviao(char *msg, char *msgErro){ char…
-
0
votes2
answers175
viewsConfirmation of site or host service status
I built this script to run on Linux, but it is not working as expected. I’m using the curl to find the state of the HTTP connection. He returns to me: HTTP/1.1 200 OK Mais alguns conteúdos do site…
-
0
votes1
answer89
viewsDate validation composed of three integers in Django
In my application I am receiving from the user the day, month and year, the three fields are part of a form and are IntegerField. I don’t want to use the DateField, because the user has the options…
-
0
votes0
answers82
viewsValidation with Modelstate
I have a web application in . NET Framework 4.6.1 with a method similar to the one shown below: public class MeuControladorController : ApiController { public IHttpActionResult…
-
0
votes1
answer973
viewsReturn message to user
I would like if this error when logging in to return a message to the user In my view login.blade.php is like this div class="login-form"> <form action="{{ route('logar') }}" method="post">…
-
0
votes0
answers34
viewsPrevent user to type numbers and symbols. However problem something use Capslock Buttons
When I click the input and hit Caps Lock, Backspace, it sends the patch message. for example, I type the normal and safe Backspace input to delete everything, when it comes at the end it shows the…
-
0
votes1
answer60
viewsPass function by validation function in php
Good, I have a class "Entity", where I have the property "Phone", for the phone, I have a function the part that validates the phone number "isvalidTelephone", I also have a function that prints all…
-
0
votes1
answer242
viewsHow to enter checkbox validation logic and display message if not selected
Currently, in my quiz, the user can proceed to the next question without at least selecting an answer option. I am trying to put a condition where If an option is not selected, display an alert…
-
0
votes1
answer30
viewsHow to validate Insert with relationship
I have three tables, one of the types of vehicles: car, motorcycle. A table of brands: Honda, Ferrari Another associative, called tag_type_vehicle. The Honda brand for example, has cars and…
-
0
votes1
answer508
viewsHow to return validation errors of subobjects, attributes(objects), lists, to spring?
Today I can validate attributes errors of my class that are not complex objects (other objects of my model that are related to it), but what happens is that the "validation bean" validates the…
-
0
votes1
answer89
viewsHow to loop with invalid object message?
I am only doing this program to train, and I want to print a message saying "invalid object" if what I type is different from the solids that will be declared in the variables, but with a loop while…
-
0
votes1
answer481
viewsExpress Validator in controller
Hello. I use the Validator express in the nodejs and I’m having a validation problem. When I was validating directly through the routes, the validation was working, however, when I implemented…
-
0
votes1
answer249
viewsValidation in the constructor - Python
I made this class however, when I enter values that in theory should not be allowed it continues running normally, even having created a function that makes the validation. I can’t get it inside the…