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
answer30
viewsValidation of Nativescript empty fields
Need to validate multiple Fields (text, Dropdown) in one form, which is divided into two : <StackLayout> <TextField required [text]="usr.nome" [(ngModel)]="usr.nome"></TextField>…
-
0
votes1
answer482
viewsLaravel - How to override the validation message?
I have a Request that validates through a class Request: The Controller: public function store(PagtoRequest $request) { ... resto da lógica A Request: namespace App\Http\Requests; use…
-
0
votes1
answer151
viewsuse redirect to specific page after validation in case of error - Laravel
Well I have the code below Validation: class FormNew extends FormRequest{ public function authorize() { return true; } public function rules() { return [ 'email' => 'required|email', ]; } public…
-
0
votes1
answer82
viewsI want to put 2 exceptions for my program validate data
a = (''' Escolha a conversão que você deseja realizar: 1) Celcius-Fahrenheit 2) Fareheint-Celcius 3) Celcius-Kelvin 4) Kelvin-Celcius 5) Fahrenheit-Kelvin 6) Kelvin-Fahrenheit ''') try : a =…
-
0
votes2
answers181
viewsValidate password confirmation field, why does confirming field not work?
alert('aa'); function validar() { //campo nome if (form.nome.value == "") { document.getElementById("erro").innerHTML = "Por favor, preencha…
-
0
votes2
answers81
viewsForce user to mark at least 5 input type number fields
I’m making a website with counter with a button more and less... All are input number type with limit of 0 to 5 each input. There are 33 input type numbers, of which 33 the user will have to choose…
-
0
votes2
answers56
viewsAvoid validation on hidden elements
Good night, you guys, I need a light. I am creating a dynamic system, which creates a form from a JSON. It turns out that in some cases, I create a select, and according to its value, I display a…
-
0
votes1
answer35
viewsHow to unlock the fields according to what the user types?
I’m making a form with 3 fields, where the first fields is unlocked and the others blocked. They unlock according to the first field, for example: User typed in the first field -> unlocks the…
-
0
votes1
answer33
viewsProgram that receives a series of notes needs to disregard an invalid entry
Make a program that receives a series of student grades and then print them out. However, the program cannot accept notes greater than 100 or less than 0. If the user types a wrong note, they should…
-
0
votes1
answer71
viewsHow to make a table that only accepts number 1 to 100?
I started now in programming and I’m in trouble. I’m trying to make a table that only accepts numbers from 1 to 100, but this giving errors var num = document.getElementById("caixaNum") var tab =…
-
0
votes0
answers29
viewsProblem with validation process
I am creating a precedent to validate whether the field discount (%) receives a percentage less than zero (negative value) or greater than 100%. But when executing appears an error that I am not…
-
0
votes1
answer65
viewsChecking the existence of a file - JS
Good night I want to know if a particular file in a directory exists or not using pure JS, but none of the Answers on the internet worked. answers I tried: Answer 1 answer 2 the answer 2 returns…
-
0
votes1
answer62
viewsMandatory checkbox in flutter
Good morning, I am developing an application and with the implementation of LGPD has become mandatory in the registration menus a checkbox with the famous "read and accept the terms of use and…
-
0
votes0
answers36
viewsValidation of strings in C
Good afternoon, I am learning C in college, and the following challenge has been proposed: A seller needs an algorithm that calculates the total price due for a customer. The algorithm must receive…
-
0
votes1
answer119
viewsHow to create validation in different fields in the Reactjs form?
How do I validate the form created with Reactjs according to what user reports in the fields? Example: <form> <label for="tipo_requisicao">Escolha uma opção:</label> <!-- Campo…
-
0
votes0
answers33
viewsHow to do cellular and date validation in a C++ application
Hello, I am a beginner and I have an activity to do, I need the following steps: . In the cellular attribute, it is necessary to validate the input so that numbers are accepted within the range…
-
0
votes1
answer36
viewsI can’t validate @Embeddable class attributes
I have validation problem in the Address class that is @Embeddable while trying to make a POST. When I put on null in the field nome that is of Pessoa for example, I can capture the custom message…
-
0
votes1
answer26
views(Function) Check filled fields return previous action
I have a function that checks whether the fields in my form have been filled or not picking by their value. If certain fields have been filled in and an action appears on progress. In this role I…
-
0
votes0
answers9
viewsHow to validate the fields when I am receiving Rabbitmq data?
I’m developing a service using the Nestjs framework for data consumption that I get from a Rabbitmq queue. I understand that to validate the fields of an api just do the following: @Post() async…
-
0
votes0
answers24
viewsValidation Flask Wtforms
I am developing a web project and am having problems in the form validation part. Just follow my validations: # REGRAS DE VALIDAÇÃO # def validate_username(form, username): if…
-
0
votes0
answers9
viewsForm validation and page redirection
I have a form in an html page, then I have 2 links, each one redirects to a different page and in each of these pages is rendered another form that is actually continuation of the first. I want to…
-
-1
votes1
answer172
viewsValidate blank fields
I have a form with 3 fields to be filled and stored in bank. One of the fields is filled by the system the rest by the user. boolean isInserted = myDb.insertData(editNome.getText().toString(),…
-
-1
votes1
answer2649
viewsValidate checkbox
I am trying to make a form when it is sent check that the check box is selected, if it does not issue a alert asking to select at least one category. The check box field searches for database…
-
-1
votes1
answer1785
viewsValidate date of birth, so you can not register under 18 years (Javascript)
I have a field called txtdata_nasc of the date type. I need the user not to be able to type a date that makes him less than 18 years old, but also that he cannot be of an absurd age, such as 100…
-
-1
votes1
answer566
viewsDate validation with Jquery
How to do date validation from Editorfor using jquery? wanted to check if the date typed by the user, and if the date he typed is greater than the current date, display a message to him stating the…
-
-1
votes1
answer180
viewsI’m using Captcha but there are still robot attacks
In the form Submit I am using the standard validation of Capctha (version 2 of Google) for the firing of e-mail, but for some reason robot attacks still pass, filling my inbox. I make the check as…
-
-1
votes1
answer50
viewsC# Lambda function with multiple validations, checking using contains with multiple comparisons
_release is a List with several records x.located is a bool x.Description is a string I’m trying this way if (_lancamento.Where(x => x.Localizado && x.descricao.Contains(new…
-
-1
votes1
answer250
viewsValidating only cpfs with different numbers
Good evening guys needed to do in the function below a way to invalidate typed cpfs with equal numbers by ex: 123456789 000000000 111111111 222222222222 333333333 444444444 555555555 666666666…
-
-1
votes3
answers14857
viewsHow to validate Cpf with javascript mask?
Guys I’m a beginner in the area and wanted to know how I validate Cpf with javascript mask, I’ve been searching and I couldn’t find one that did both at the same time. I have an example that I had…
-
-1
votes1
answer634
viewsHow to compare string in text file with user imput and do validation?
At the end of this code, I’m trying to read the names of some countries and compare with user input, but I’m not getting results. It keeps repeating. If it finds, the program has to follow the flow…
-
-1
votes1
answer132
viewsModal help for confirmation of email sending and data validation
I have the following form on my website <form class="form-horizontal" name="form1" method="post" action="enviaemail.php"> <div class="form-group"> <div class="col-sm-4"…
-
-1
votes2
answers784
viewsEmail form validation with javascript
I created a form to send email, I can send the email but I can’t check if the fields are filled. <script type="text/javascript"> function checkEmail () { var name = document.form.name; var…
-
-1
votes2
answers49
viewsJavascript code enhancement for site field validation
Good morning guys, I just need a little help improving a javascript field validation. In my form there is a field called website and I need to have a url validation (I already did) and I need to…
-
-1
votes2
answers120
viewsHow to customize user validation rule with multiple access levels?
I need to do a validation in the user registration where an email can only be validated if in the table users your level of access is not company level. On the table users, there is already a field…
-
-1
votes3
answers973
viewsLaravel - validation of the field formatted with BR currency
I’m using the jQuery Input Mask to put mask in values. As much as in the front end the mask avoids being informed of any character other than numbers, dots or the comma, it is necessary to validate…
-
-1
votes1
answer51
viewsSelect one or more Checkboxs release send button
Hello Folks I am in need of a help on the following question: When I select a checkbox the send button will not be available, but if you select one or more is available. follow the code: <div…
-
-1
votes1
answer26
viewsHelp with Jquery field validation
I did the following function for form validation in Jquery, but it got a bit big, and I have +50 fields to validate, someone knows some way to reuse this same function for the other fields without I…
-
-1
votes1
answer80
viewsActivate download button on js
I have a form that requires you to fill in the name and email to download a file. But I don’t understand enough js to disable the download button until the other fields are valid, IE, the button…
-
-1
votes1
answer407
viewsAngular Reactive Forms validation by clicking the button
Hello, I’m trying to create a validation to check if there is already a Cpf in the database (fictional), only that I wanted to change the trigger, instead of triggering the validation on keyup…
javascript angular typescript validation reactive-programmingasked 4 years, 6 months ago Renan Duarte 37 -
-2
votes1
answer142
viewsGraphic Effects in Javascript Validation
What is this validation effect/libraryJS where the validation is performed at each field fill and returned the inconsistencies immediately and displays floating information like this used by the…
-
-2
votes1
answer343
viewsPHP: Questions about front-end and back-end input validation
The questions are about how to make the validations in front-end and back-end. Basically, the doubts are as follows: If the front-end validation is disabled as the messages to the user? Validating…
-
-2
votes1
answer27
viewsIgnored validation rule
Greetings, I’m having trouble making a validation by Laravel. Today, I need to do the following validation 'data_visita' => ['required', 'date_format:d/m/Y', new AfterOrEqual1900], when you’re…
-
-2
votes1
answer123
viewsPython Text Message Validation
Anyone has any idea how I do to validate a text message in Python, I have a screen that when I click to register and have some incorrect information it shows an error message informing the…
-
-2
votes1
answer458
viewsJava field with numbers only
I’m doing a medical record for a hospital system test and I’d like to know how to validate the field CRM. It is a variable double, I want the field of Joptionpane accepted only numbers in CRM, I’ve…
-
-2
votes1
answer71
viewsValidation of <input> with javascript
I would like to do an inline validation on an input. I want that if the user type something other than 0 or 1, a message appears warning that only 0’s and 1’s are allowed. Here’s what I’ve tried:…
-
-2
votes1
answer281
viewsLimit number of digits in data entry
I’m having a hard time understanding the issue of limiting characters, I researched, but I didn’t understand very well how to use in the code, I made the sketch here, to understand more or less what…
-
-2
votes2
answers787
viewsRegex that accepts only letters or letters and numbers
I’m trying to make a regex in Java that accepts: only letters; letters and numbers cannot have only numbers cannot have punctuation characters or special My difficulty is that I cannot make a regex…
-
-2
votes1
answer687
viewsJS/Vue CPF validator
I’m trying to use a function to validate CPF and at the end of it call the function that checks whether the field is required and numerical. If I call only the function forgotmain, all goes well,…
-
-2
votes1
answer165
viewsPassword validation with javascript
I am trying to validate a form, which it from Submit in the form only if the password field is filled with at least 1 UPPERCASE LETTER, 1 NUMBER, 1 MINUSCULE LETTER. I did this with regex Pattern…
-
-2
votes0
answers13
viewsSpring validation validates correctly, but does not return error message
Guys, it’s like this: the validation is occurring, I can see the error message in the console, but in Postman, only the status 400 appears, with empty body, no error message or anything. Follows the…