Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
293 views

I have created Custom ContrainValidator and added the code below. I have also added my controller class. Somehow code is not flowing in the validator. ValidCustomClass class package com.validation; ...
Sankalp Bhatt's user avatar
0 votes
2 answers
85 views

I am new to programming and am trying to build this form validation function to check the validity of different input types and throw relevant errors. The part I am struggling with is incorporating ...
Joanna's user avatar
  • 11
0 votes
0 answers
55 views

below is a snippet of code I'm having issues with. I'm new to JS but the idea was to validate against input entered into a form. I got everything fine but eventually wanted to introduce the idea that ...
abfirstr8's user avatar
0 votes
1 answer
141 views

Using the following form in Safari, if you set a date and then use the "clear" button to unset it, Safari will invalidate the form even though it's valid. It also doesn't assign the input ...
nick's user avatar
  • 3,760
1 vote
0 answers
84 views

The HTML Constraint Validation API provides default error messages. For example, when the user enters an invalid pattern, the message below is automatically provided: Please match the requested ...
JoeO's user avatar
  • 109
-2 votes
1 answer
1k views

I am trying to get the text of the mouseover on the login page from the email field. This is the site "https://app.involve.me/login/?_ga=2.49216998.1374332121.1660294616-36640509.1660294616" ...
talvi8942's user avatar
0 votes
2 answers
592 views

I'm trying to make a Selenium test script that checks if a bootstrap validation popover appears when submitting a form containing a bad value. My script below returns this error: org.openqa.selenium....
Cody's user avatar
  • 1,879
1 vote
1 answer
2k views

Consider the following code: $("button[type='submit']").click(function(e){ if($(this).closest("form").checkValidity()) { $(this).closest("form").reportValidity(); ...
user31782's user avatar
  • 7,807
3 votes
1 answer
4k views

I've implemented a custom validation message on my input for the pattern validation rule while leaving the default message for required as is. However, when I do so, once the input becomes invalid, it ...
Jacob Stamm's user avatar
  • 1,908
3 votes
1 answer
1k views

Is there a way to use browser's native HTML validation error messages and use them in angular way? what I would like is to when having like a reactive form like this: testForm: FormGroup = this.fb....
Demiro-FE-Architect's user avatar
0 votes
1 answer
4k views

I have a very simple form here with 2 required inputs. When you click submit button without filling them - there are popups saying that you should do it. The problem is that popups are showed one by ...
Noel M.'s user avatar
  • 13
1 vote
2 answers
248 views

I have a client who wants me to punctuate all currency inputs with commas and dollar signs. This means that I have to use a text input instead of a number input, which means that I cannot take ...
tklodd's user avatar
  • 1,088
2 votes
2 answers
3k views

I was looking through the Constraint Validation API and found some example code online that seemed to call checkValidity() on <form> elements: (function() { 'use strict'; window.addEventListener(...
edddd's user avatar
  • 490
0 votes
2 answers
4k views

URL- https://www.vtiger.com/begin-free-trial Enter an invalid email address such as "abcde" and now click on Next Button. You will notice an error message which will appear for 4/5 seconds ( ...
gaurav kumar's user avatar
2 votes
1 answer
1k views

I'm struggling with the HTML5 native form validation. My understanding from Client-side form validation is you can manually set the validity state of an element with setCustomValidity(). However, this ...
patrick3853's user avatar
  • 1,130
0 votes
1 answer
764 views

I have a form that has required fields when I try to submit the form with blank required fields an error message is displayed as shown below in the screenshot. with Selenium in Java its not possible ...
Vin's user avatar
  • 177
16 votes
1 answer
2k views

We're using HTML5 form validation without overwriting the default system UI for the validation error messages. This is working fine everywhere but on iOS Safari, where the validation messages are not ...
MoritzLost's user avatar
  • 2,899
1 vote
4 answers
4k views

I've got a script writing values into a web page, and all values write except for one field that keeps throwing up the following error: (Screenshot provided b/c in other similar questions many ...
Python_Learner's user avatar
0 votes
1 answer
54 views

I have a html5 date control with a min/max contraint as below. <input class="testclass" type="date" min="2020-02-01" max="2020-03-01"/> The control can sometimes be loaded via ajax and there ...
Greasy_Spoon's user avatar
4 votes
1 answer
2k views

Only some HTMLElements support the constraint validation api (e.g., HTMLButtonElement). I want to create a custom web component, which also supports the constraint validation api. In the following an ...
Stefan's user avatar
  • 1,273
3 votes
2 answers
997 views

I would like to check if username and email address is unique on client side. Is there any way to add custom validation for constraint validation? Or is there any other recommended way for this? I ...
BK C.'s user avatar
  • 583
0 votes
3 answers
799 views

I want to Get the email id entered "[email protected]" using java code. I tried the below codes, but it always returned null. What I really need is, I want to check whether email is successfully ...
Arjun's user avatar
  • 361
2 votes
1 answer
923 views

How do I validate the following message? The required class has the floating message.: try the following, but I get the error "no such alert" package firsttestngpackage; import org.openqa.selenium....
Victor's user avatar
  • 21
3 votes
3 answers
4k views

After click on the "LOG IN" button, a "Please fill out this field." pop-up message appears. I want to get the text of this pop-up message by using Selenium. Is it even possible? ...
Wonderio619's user avatar
1 vote
1 answer
1k views

Using HTML5 validation and screen readers, is there a way to make the screen reader read the HTML validation message? <form> <input type="email" required="required">...
Alex Plouff's user avatar
0 votes
2 answers
351 views

I have tried switch to alert but it's showing no such alert found error. And i have also tried ifranes,windowhandling. The popup stays for only 1-2 sec and I can't use inspect element to get the xpath ...
Prajeeth Anand's user avatar
0 votes
1 answer
531 views

I'm validating data entered in a form using HTML5. Is there a way of breaking the string passed as an argument of method setCustomValidity()? I've tried different combinations of a carriage return ...
tylluan's user avatar
2 votes
2 answers
1k views

I have custom password validation function in my form. On the same form I use HTML5 validation on all other fields. I'm wondering if there is a good way to include this function in HTML validation? ...
espresso_coffee's user avatar
11 votes
1 answer
9k views

Is there a way to find which child elements in the form is invalid using the html5 automatic form validation? I know we can check element by element, by calling checkValidity() method. What I'm ...
pabz's user avatar
  • 604
0 votes
0 answers
836 views

It appears as though Internet Explorer does not reset the validation state (both .checkValidity() and validity.valid) after a default form reset. This does work as expected in Chrome and Edge. Does ...
allicarn's user avatar
  • 2,929
0 votes
2 answers
189 views

I have used HTML in my new project and seems pretty nice to use some of the new features. However there is a few things that are iffy and I can get them to work. For example if I use pattern attribute ...
espresso_coffee's user avatar
2 votes
1 answer
5k views

I'm trying to implement HTML validation in my project. Seems very helpful and easy for use. However this validation will work only if input type is set to submit. That part is causing problem for me. ...
espresso_coffee's user avatar
2 votes
0 answers
1k views

I want to leverage HTML5Constraint Validation for a registration form. I have a large number of inputs, and due to this, the submit button is not on screen at the same time as some of the required ...
TheHanna's user avatar
  • 546
2 votes
2 answers
971 views

I have created a login form with username and password fields. Username should be a a text filed with type email and password will be a text filed with type password which need to satisfy a regex ...
Sha's user avatar
  • 2,024
-1 votes
1 answer
1k views

I'm trying to understand why I can't get browser validation error messages to show based on HTML validation. I have a field in my markup that I want to validate, and a link that investigates its ...
simple's user avatar
  • 100
1 vote
0 answers
172 views

I want to create custom validity rules for HTML input elements (or polyfill unsupported ones). To blend as well as possible into the browser's native validation procedure, I came up with overwriting ...
Boldewyn's user avatar
  • 83.1k
0 votes
0 answers
634 views

I have multiple forms on a ASP.NET web form (which are actually div tags since I can have only 1 form tag on the web form) , and I've applied the HTML required attribute on my input fields. Each form ...
Fahad's user avatar
  • 1,454
2 votes
1 answer
165 views

I was just troubleshooting an issue with a library of mine but it boils down to being something related with Opera behavior. Now, I haven't found big warnings anywhere on this issue, so my guess is ...
Alpha's user avatar
  • 7,918
1 vote
1 answer
860 views

I want my HTML form to show a custom error message when an email address is not in correct format <form> <input type="text" pattern="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9]...
Mark's user avatar
  • 3,271
0 votes
2 answers
1k views

I have a form with the following code: <form name="form" method="post" action="https://pilot.datatrans.biz/upp/jsp/getCcAliasFormMod.jsp" id="form_payment_cc"...
bernland's user avatar
  • 688
0 votes
2 answers
374 views

The validity property of an HTML input does not seem to work in Firefox. var input = $input.get(0); console.log(input.validity) This console log returns an empty object. It's working on Chrome and ...
user avatar
6 votes
1 answer
4k views

How can i override, or extend, the standard WebForms WebForm_OnSubmit JavaScript function? I am using HTML5 input types in an ASP.net WebForms web-site. The user-agent (e.g. Chrome, IE, Firefox) ...
Ian Boyd's user avatar
  • 259k
17 votes
5 answers
30k views

I am trying to handle form validation on button click. It is validating the form but not showing error. can anyone help me in this? <form id="the-form" action="#"> <...
Imran Rashid's user avatar
  • 3,512
31 votes
4 answers
55k views

I want to know if there is any way to programmatically show a HTML validation error, using a JavaScript function. This is useful for scenarios where email duplication has to be checked. For example, a ...
Ahmad's user avatar
  • 13.5k
13 votes
3 answers
6k views

When using HTML form validation, having an invalid input value in a form will halt submission of that form. How can I detect that the user attempted a failed form submission? The form's onsubmit ...
wheresrhys's user avatar
  • 23.7k
5 votes
1 answer
4k views

I have a JavaScript validation framework that I've created and I'm trying to add HTML validation to it. In my framework, validation is accomplished by binding validation-constraints to elements using ...
Vivin Paliath's user avatar
1 vote
1 answer
646 views

I am using the built-in HTML validation methods to validate the date of birth in a form. The form has three select list elements: user_dob_date user_dob_month user_dob_year All three elements have ...
Norbhu Bhutia's user avatar
24 votes
5 answers
14k views

How to check if a browser has built-in HTML form validation ability? By doing so, we don't need to apply jQuery form validation functions on browsers who can validate form by themselves.
Ian Y.'s user avatar
  • 2,447
36 votes
6 answers
47k views

I have a simple HTML form that I want to leverage for required field validation. My issue is that I want to use the HTML5 form validation BUT at the same time avoid actually submitting the form ...
Rees's user avatar
  • 1,787
461 votes
19 answers
882k views

I've got the following HTML form: http://jsfiddle.net/nfgfP/ <form id="form" onsubmit="return(login())"> <input name="username" placeholder="Username" required /> <input name="pass" ...
Skizit's user avatar
  • 45.1k