validation Questions
2
I have been using Go Validator.v2 for field validations and it works elegantly for my non-struct typed fields. However, when it comes to handling struct-based fields (within the original struct), t...
Schreiber asked 20/10, 2020 at 9:2
2
Solved
I would like to add some type of validation to my QInputDialog. I use the input of the dialog to create a file system path. So I would like to exclude characters such as @$#%^&*() but keep - an...
Glantz asked 8/11, 2013 at 17:56
7
Solved
I using default ASP.NET MVC 4 validation bundle in my application. In view I have a date field in the format of "dd/MM/yyyy" and jquery validation failed to validate the format. Then I added the be...
Markup asked 31/12, 2013 at 6:16
2
Solved
If I had a property that should be limited to only a few possible values, using Yup I could do something like:
prop: Yup.string().oneOf([5, 10, 15])
I can not seem to find something similar in Zod...
Nigeria asked 26/12, 2022 at 14:56
2
I am new to Java and maven. I might be missing something obvious, but I am not able to figure it out.
I was trying to add javax validations to my project following the link :
https://www.baeldung.c...
Swaziland asked 29/11, 2020 at 15:16
10
Solved
I would like to be able to use javascript to find every id (or name) for every object in an html document so that they can be printed at the bottom of the page.
To understand more fully what I'm t...
Noman asked 18/8, 2011 at 22:42
1
Solved
So here is a basic example of modern Vue 3 props declaration with <script setup lang="ts"> with mandatory name and optional age:
// <script setup lang="ts">
definePr...
Charleen asked 20/12, 2022 at 11:12
7
Solved
I'm builiding a web application that allows our users to sell tickets for music shows. In order to handle the payments between ticket buyers and show instigators, I use Stripe.
Basically, the show ...
Polynesian asked 5/5, 2013 at 19:19
6
Solved
I am using Laravel 5.7
I am attempting to upload an image file and validating its upload using built in laravel validation. It keeps responding with 'The file failed to upload.'
I am using AJAX t...
Sling asked 21/4, 2019 at 19:48
8
Solved
I have form with dynamic amount of inputs (admin email) however checking for uniqueness fails:
validationSchema={Yup.object().shape({
adminEmails: Yup.array()
.of(
Yup.string()
.notOneOf(Yup...
Forgo asked 8/1, 2019 at 14:27
5
I have read couple of post regarding the issue of checking the file extension while upload a file using laravel.
I have the same issue and didn't file the solution even if spending an hour behindi...
Bedlamite asked 23/2, 2016 at 6:39
4
I'm trying to write a program that automatically add columns from the OLE DB Sources in all of the components in a .dtsx file (the target is SSIS 2005). When I process the .dtsx with my program see...
Prague asked 20/9, 2013 at 15:18
9
Solved
Hi all I need a required field validator for my textbox..This is my textbox..
<asp:TextBox ID="txtTimeSlotGroupName" runat="server" AutoPostBack="false"
ClientIDMode="Static"></asp:Text...
Adolescent asked 25/4, 2013 at 5:31
9
Solved
I integrated the new hidden reCAPTCHA (v2) framework which by default verifies the user with the click event of the submit button. But this event is triggered before the built-in HTML form validati...
Medievalist asked 15/1, 2017 at 20:28
4
Solved
Laravel 8 makes it possible to create custom Validation rules: https://laravel.com/docs/8.x/validation#custom-validation-rules
php artisan make:rule Euro
But then you have to pass the rule as a obj...
Lumbricalis asked 25/8, 2021 at 11:29
9
Solved
Is it best to use a 'text' attribute with a limit on the number of characters, or can I use a number attribute in an input for a zipcode.
Just trying to get my head around all the different attrib...
Ealdorman asked 15/5, 2014 at 11:21
15
Solved
So I have to create code that validate whether a password:
Is at least 8 characters long
Contains at least 1 number
Contains at least 1 capital letter
Here is the code:
def validate():
whil...
Ginetteginevra asked 13/12, 2016 at 9:38
3
How to do validation with database like unique filed validation in nest JS using the class validator?
I created a custom validation class and tried it. But userService was undefined when I console ...
Stratify asked 7/3, 2023 at 9:51
9
Solved
I've seen a few Bitcoin Address form validation scripts for various languages, but surprisingly can't really find anything for two common web languages, Javascript and PHP.
Here's one for Python,...
Rollmop asked 4/2, 2014 at 17:57
7
I need to validate just one field (called 'Instance') to accept lowercase ASCII letters and numbers only, the first character also has to be a letter not a number. It will accept uppercase characte...
Foulard asked 4/4, 2014 at 9:7
5
I have multiple structs in my application using golang. Some fields in a struct have maxsize tags, some does not have.
for e.g:
type structone struct {
fieldone string `valid:MaxSize(2)`
fieldtw...
Novosibirsk asked 22/11, 2019 at 7:30
6
Solved
I keep getting this annoying error from Checkmarx code scanner,
Method getTotalValue at line 220 of src\java\com\example\PeopleController.java
gets user input for the personName element. This ele...
Fouts asked 1/1, 2019 at 8:12
9
Solved
I have an ASP.NET form that takes input from a user. There's a Submit button on the form and a button called Calc which does a calculation to populate a text field. The problem I'm having is that o...
Clement asked 17/6, 2011 at 15:1
3
Solved
I have a requirement Where I need to add data validation to an entire column rather than a specific cell. I went through the documentation of Apache poi and found the example below
HSSFWorkbook wo...
Weimer asked 27/1, 2015 at 15:17
3
I have a field in a JOI schema that I would like to be optional (i.e. undefined is accepted, and null is also accepted), however if a value for it is supplied, it must be a positive integer. How mi...
Trangtranquada asked 9/9, 2021 at 4:9
1 Next >
© 2022 - 2024 — McMap. All rights reserved.