Category "validation"

Angular FormArray display validation errors

I have Angular form that is built with help of FormBuilder. Form contains a FormArray which has as many fields as user wants. I've set validator for fields this

How to implement a regex for password validation in Swift?

I want to implement a regex validaton for passwords in Swift? I have tried the following regex, but not successful ([(0-9)(A-Z)(!@#$%ˆ&*+-=<>)]+

How to create html5 custom validation?

I am using html 5 form validation for validate my form before submit, if is valid, submit, but I need validate my User Register form, so it need validate if Pas

Password validation REGEX to disallow whitespaces

Password cannot contain white spaces must contain at least one numeric char must contain 1 capital letter and be at least 8 characters in length, max 15 this is

ModelSerializer field validation for empty string

I'm having a problem with django rest framework. My front is posting data to drf, and one of the fields could be null or an empty string "". # models.py class

Date input type validation in javascript?

I can't quite figure out how to validate a date input type in javascript. I tried looking on the internet but I just couldnt find anything. I have one field th

Validating email that has @something.co.uk

I have the following regex options: let emailValid = "/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/" emailValid = "^[A-Z0-9._%+

React: Number input with no negative, decimal, or zero value values

Consider an input of type number, I would like this number input to only allow a user to enter one positive, non-zero, integer (no decimals) number. A simple im

fit_generator() to save model with least validation loss

How do I use keras function fit_generator() to train and simultaneously save the model weights with lowest validation loss?

Return "success" message after form submit

I am trying to return a "Thank you" message after a successful jquery email validation and form submission. I want to show the "Thank you" message and prevent t

Russia VAT Number validation

Does anyone have code to validate for validating Russian TAX Registration number (VAT). C# code will be great, but if someone have some other language it will b

Java NullPointer Custom Validator javax.validation.ConstraintValidator

I have the following Validator that I use to validate an Update Request. @Component public class UpdateDateValidator implements ConstraintValidator<ValidateD

How to validate timestamp in javascript

How do you validate timestamp using javascript and timestamp to accept multiple formats e.g. YYYY-MM-DD HH:mm:ss.S, YYYY-MM-DD HH:mm:ss AM/PM.

Oracle ADF Validate the selected value of a inputComboboxListOfValues

I use the Oracle ADF included in JDeveloper 12c. I had to create a comboboxListofValue to select a MsterAsset, let just say it has an Id and a Number, and it's

Show/Hide Checkout Fields according to answer to previous question

I use a multi-step checkout plugin. I ask customers if they have allergies, using checkboxes. The first checkbox is none followed by chicken, beef etc. I wish

How do I pass kwargs to pydantic validator

I'm trying to write pydantic validators, but I can't seem to understand how to make use of the kwargs argument that is mentioned in the docs. I would like to p

How to check whether a given string is valid JSON in Java

How do I validate a JSON string in Java? Or could I parse it using regular expressions?

x:bind and data validation for numeric field

I'm struggling a bit with UWP, x:Bind and data validation. I've got a very simple use case: I want the user to input an int in a TextBox and display the number

Is it possible to validate that one of 2 parameters are present using class-validator?

Using class-validator along with NestJS I want to validate that a user provides either propertyA or a propertyB but they don't need to provide both. Currently,

regular expression not to allow zero

regular expression not to allow zero it should allow 0.0000001 as value but should not allow to enter 0. I need validator not javascript