We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [validation]

Validation is used to check data to make sure it fits whatever required specifications are set for it. Typically Validation is used in checking input data, and in verifying data before storage.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

How can I can validate form fields using sync and async validation rules?

I have form with validation on onBlur and onKeyDown. My problem is to implement validation of email field. The task is to check this field on frontend side using regex expression and in case of truth ...
0
votes
0answers
13 views

vee-validate v3 server side rules

When I want to check if the password is correct with vee-validate rules (server sides); I've an error: Uncaught (in promise) Error: No such validator 'passMatch' exists The following code come of the ...
0
votes
0answers
10 views

Validation of encoder-decoder transformer model during training

I am training the exact same encoder-decoder transformer model following the steps in https://www.tensorflow.org/tutorials/text/transformer There is no step for validation during training. How to ...
0
votes
2answers
26 views

python- Best techniques to split datase to get high performance accuracy

I have applied these 4 methods: Train and Test Sets. K-fold Cross Validation. Leave One Out Cross Validation. Repeated Random Test-Train Splits. The method "Train and Test Sets" achieve high ...
0
votes
1answer
31 views

Spring boot application custom validation annotation doesn't fire

I want to have custom validation annotation in my spring boot application. I've done everything same as it is shown in examples, but it doesn't fire. What I'm missing? Here is code @Documented @...
0
votes
1answer
44 views

REST Standards: Can the same Request Object used for POST & PUT requests?

Say, these are the following POST & PUT Requests @PostMapping(value = "/") public ResponseEntity<CustomResponse<EntityExchange>> createEntity(@Valid @RequestBody EntityExchange ...
0
votes
0answers
12 views

Why the loss and acc values changed slightly and the val_loss and val_acc values didn't change at all?

I made the image classification by using VGG16 to classification the 2 classes. Dataset is balanced with the same amount. When training, the loss and acc values changed slightly and the val_loss and ...
1
vote
3answers
35 views

How to prevent user inputs less than the maxlength in a textbox in vb.net

I have created a textbox that inputs contact number and i set it to maxlength = 11. how do i prevent users from entering less than 11 digits? just only exact 11 digits. Thanksssss
2
votes
1answer
21 views

Loop through all input item which aren't a filetype

I have the following code which is being used as validation on input fields. However, I'm getting stuck as it's checking input filetype fields as well, which I don't want it to do. Is there a way of ...
1
vote
1answer
26 views

i'm trying to validate my html form but my JS script is not working, when i click submit button nothing happens except that my page is reload [duplicate]

i'm trying to validate my html form but my JS script is not working, when i click submit button nothing happens except that my page is reload/refresh. var username = document.forms['forrm1']['name'...
1
vote
1answer
17 views

Python: inquirer validate function

Can I use a separate function for inquirer validate function or it has to be lambda function? I'm trying to ask a question about shift count. So I have to check it's number or not. I wrote a ...
0
votes
0answers
27 views

How I can fix respect validator fatal error?

I do not know why I get these kind of errors. Edit: When I changed the PHP version to 5.6 then the code error changes. I do need to use version 7.1 because of source code as written in 7.1 version. ...
-1
votes
0answers
8 views

Flask Validators İssues [on hold]

I tried making a register form with flask and wtforms but wtforms validators don't work. from flask import Flask, render_template, flash, redirect, url_for, session, logging,request from ...
-2
votes
0answers
23 views

Validate-need with more than one option

I am able to validate-need one column in R, but not more. See examples below: Works fine: validate(need(!(c("b") %in% c("a", "b")), "x")) Works fine: validate(need(!(c("z") %in% c("a", "b")), "x")) ...
0
votes
1answer
22 views

JavaScript: How do you do unicode form validation?

This is not working on Edge but fine on Chrome. ... patterns.fname = /^[\p{Lu}]{1}[\p{L}]{1,15}$/gu patterns.lname = /^[\p{Lu}]{1}[\-_0-9 \p{L}]{1,15}$/gu ... myinput.match(patterns.fname); myinput....
0
votes
0answers
25 views

With Ecto, validate that a changeset with 2 different related models have the same parent model

In my app I have a method to create a new response. A response has a belongs_to relationship to both a player and match. In addition player and match both have a belongs_to relationship to a team. ...
0
votes
1answer
25 views

How to allow special characters in email validation?

I am trying to allow special characters while validating user entered email but android standard utils.pattern validation doesn't work for this case. I have implemented as below: if(!AppUtils....
0
votes
1answer
33 views

Laravel Validation not between in range of numbers (opposide of between rule)

I want to restrict user to not using some numbers in input, For example 1 to 14, I did it in dirty way: 'role' => 'required|not_in:'.implode(',',range(1,14)), Is there any better and laravel way ...
-1
votes
3answers
57 views

Javascript validation not working, but PHP validation does

Case: Php and Javascript validation for Signup Form So, I am stuck with this problem : I have a Sign Up page and I validate it using Javascript and PHP. When I have no PHP validation script, the ...
0
votes
2answers
33 views

Why does my flag keep getting set to false?

Hello I am writing a simple program for a user to take a 3 question test. I am trying to validate the user input however if the user enters in a loop to enter the correct data because they previously ...
0
votes
0answers
37 views

validator not working with input type date in Laravel

I am a newbe of Laravel 6. I made an app to create meetings. The user creates a meeting by a form with many inputs and in the controller there is a validator that checks if the inputs are filled in. ...
0
votes
1answer
23 views

Form value set with JavaScript fails validation

I'm trying to create an autologin script for https://sso.verisk.com/login/default I'm able to load the page and populate the Username and Password fields, but after clicking the Sign In button it ...
0
votes
3answers
48 views

Make validate to be Only integer input in laravel

I need to make validate the (request_number) input is the Only integer and show a Message if the student writes a string as an example. the Message if the user write the existing number is (the number ...
1
vote
0answers
10 views

Is it possible to show a progress bar or an ETA during the validation part of Keras fit_generator()

I am using a generator to create batches for my model and therefore use the model.fit_generator() Keras function. Using verbose=1 (default option) I get a progress bar and an ETA during the training ...
0
votes
2answers
28 views

How to set the properties of custom validation error template in custom user control from parent class

I have a custom user control with a custom validation error template which is a textblock. What I would like to do is to be able to set the height, width and margin of this textblock from the parent ...
-2
votes
1answer
30 views

Programmatically set inputs are ignored

For websites where Google Chrome's autocomplete doesn't work I have often written my own Javascript injection to autocomplete forms, either via a bookmarklet, (unpublished) Chrome extension or (for ...
0
votes
1answer
23 views

How do I validate field-yield is populated before moving onto the next step in a multi-stage form?

My apologies, I am certain this is a simple solution. However, the community has been so kind in the past, so I thought I would see if someone could point me in the right direction. We utilise an ...
0
votes
1answer
36 views

object.pattern() is not working correctly inside array.items() in Joi

I am trying to validate nested object whose keys should match with outer objects another key whose value is array using Joi I tried to use object.pattern and array.length which is demonstrated at How ...
0
votes
0answers
14 views

Regex for password 6-20 characters including special characters [duplicate]

I am trying to create a regex for password validation with the following rules Min 6 and max 20 chars Everything is allowed also every kind of special letters There is no restriction like at least ...
1
vote
3answers
74 views

How to validate both @PathVariable and @RequestBody in one ConstraintValidator in Spring?

I have an endpoint handler method in controller: @PutMapping("/users/{userId}") public UserDto updateUser(@PathVariable UUID userId, @RequestBody UserRequestDto updateRequest) { ... } Inside the ...
0
votes
0answers
19 views

How to handle validation messages returned by Sails JS?

Hope you are doing great!! I am working on SailsJS web-app and using actions structure for controllers. This is my user/login action: module.exports = { friendlyName: 'Login', ...
-3
votes
2answers
42 views

How to make validation with the following conditions?

Username : at least 5 letters and all lowercase letters Password : is a combination of 2-digit numbers followed by the symbol "@" or the symbol "&" and followed by 4 uppercase letters Example : ...
0
votes
1answer
20 views

Is it okay if we augment the data first then randomly choose the data and split the data afterward?

I am doing a science project about classifying medical images but I do not have a lot of data so, is it okay if I augment the data first then randomly select the data to keep and split the kept data ...
0
votes
1answer
14 views

Replace + on form input with -

How can I, via JS, replace + with - on a string passed trhu an input? Also how can I make "window.open" open in the same table? Thanks! <div id="formBusca" style="display: none; position: ...
2
votes
1answer
48 views

JavaScript input type validation

I can't seem to figure out the proper JavaScript to validate this form. Please help/provide feedback! Essentially, my script should validate whether the user has entered data in the input text box, ...
0
votes
1answer
14 views

How to add extra properties to error returned from express-validator

When I use the express-validator and validate fields, I always get the error response with value, msg, param and location properties. What if I want to add extra properties in there like say code to ...
0
votes
0answers
11 views

Read csv data with ACE OLEDB Engine, how to detect errors in data

In Excel VBA, I'm trying to read a CSV text file using ACE OLEDB Engine plus a schema.ini file. This works, but when there is an error in the data I expected the ACE OLEDB Engine to throw an exception....
2
votes
2answers
44 views

Data validation with EitherT-s inside for-comp

Consider a simplified version of the problem that I'm trying to solve. Here's my current implementation. case class Foo() def addFoo(json: String): EitherT[Future, Exception, Long] = { def parse(...
0
votes
1answer
30 views

jsonschema validation using allof and complex if else

I have a json schema looks like below,and I want load the definitions into D and E based on the values of B and C for that I've written allOf conditioning. and i'm using json-schema-validator for ...
0
votes
1answer
38 views

Unusual behaviour of any.when() in Joi

const Joi = require('@hapi/joi') var schema_1 = Joi.object({ a: Joi.number().integer(), b: Joi.number().integer() }).when(Joi.object({ 'a': Joi.number().valid(5), 'b': Joi.number()....
0
votes
0answers
6 views

How to validate json with avro schema in nodejs which can return list of errors for which data errors occured

Below is the code snippet for validating json for an avro schema in nodejs using avro-js module. //import module var avro = require('avro-js'); // path to avro schema var type2 = avro.parse('./...
0
votes
1answer
18 views

Unclear Document regarding AEM form validation

Hi everyone wonder if anyone can provide pictures or the exact pertaining to how to locate the "validation expression according to this link https://helpx.adobe.com/experience-manager/6-3/forms/using/...
0
votes
2answers
27 views

Not getting the “name” of custom attribute by ElementRef

I am using the "name" of components for conditions(if, else). I am trying to get it by the ElementRef's nativeElement property. It is working fine with elements like(input, textarea), but getting ...
1
vote
2answers
68 views

How to validate Nepali or Hindi word in HTML input form

I want user to input only the nepali language in the HTML input form. I had use the following regex [^a-zA-Z0-9]+ to avoid english alphabets and numbers but user are able to add other characters. Is ...
0
votes
1answer
12 views

XML DTD validation error: The content of element type “diagram” must match [duplicate]

I dont know why am getting the following error: Line 70 Column 11 : The content of element type "diagram" must match "(diagram_value,goal,qualitygoal,agent*)"*. I have tried changing the DTD ...
0
votes
0answers
53 views

Using validated method with array in Laravel

This is the rquest body: { "arr": [ { "a": 3, "b": 3 }, { "a": 3, "b": 3 } ] } and with this validations rules:...
0
votes
0answers
26 views

Data does not save on database after implementing validation

I have problem with my validation where after I implement it saveProduct() function, the data that I want to store does not add or update to the database. Also, I shared the product service file, ...
0
votes
0answers
24 views

Javascript form validation isn't working for registration pop-up form

*** My Registration form code function validation1() { var password1 = document.getElementById('password1').value; var password2 = document.getElementById('password2').value; if (...
0
votes
1answer
18 views

How to manually test input validation with NestJS and class-validator

TLNR: I was trying to test DTO validation in the controller spec instead of in e2e specs, which are precisely crafted for that. McDoniel's answer pointed me to the right direction. I develop a NestJS ...
0
votes
1answer
63 views

How to check JSON conditions in Failed status in swift

From JSON i am getting success and failed status, i am able to check success status but here unable to check failed status conditions in Login. login page contains PhoneNumber and Password textfields. ...