All Questions
258
questions
0
votes
1
answer
75
views
Validating billing address form using jquery plugin before payment
I have HTML form for billing address and created unique ID for each form field, but problem its not validating correctly, it must first check when fields are empty before proceed to next page. Below ...
0
votes
1
answer
160
views
Bootstrap 4 Client Side validation as user types
I have a form (using Bootstrap styling) which users are finding hard to use. As part of my delve into form UX I'm trying to prompt the user as they type that a field is incorrect; before they submit ...
1
vote
1
answer
2k
views
reset entire form using bootstrap validation
I am trying to create a dashboard using bootstrap form and validation.
I was able to Validate the entire form.
With my current code I was able to reset the value but not the error class
Here is my [...
1
vote
0
answers
407
views
Ajax form gets submitted twice when i click on submit button second time
Simple bootstrap 5 (with validation) contact form with Ajax call gets executed only when i hit submit button second time and it also save data twice. this form is inside modal form and this behavior ...
0
votes
0
answers
29
views
Using jquery form validation but modal still pops up even when invalid
I am using jquery's form validation plugin which is highly useful. But how do I prevent the modal from opening on submit?
jQuery.validator.setDefaults({
debug: true,
success: "valid"
});
...
0
votes
3
answers
1k
views
Bootstrap validation. How can i treat zero as null?
The rendered html of my form is
<div class="form-group col-xl-6">
<label class="form-label" for="SalePrice">Sale price</label>
<input class="form-control" id=...
0
votes
2
answers
751
views
Custom Bootstrap validation on form element
I am collecting an ABN (Australian Business Number) on a registration form. I have written some javascript that does validation based on the ABN validation rule here:
function validateABN (abnNumber) ...
2
votes
0
answers
452
views
HTML input field number 0-100 validation with javascript / jquery
I have a question about an input field which should only accept numbers with two digits after the dot. For this scenario I created a fully functional Fiddle example - where you can see where I am ...
0
votes
0
answers
1k
views
How to trigger default Bootstrap 4 form validation error message from custom external script
In our contact form, I'm trying to only allow submissions from email addresses from the United States, since we can only do business in that one country. How can I trigger the default error message ...
0
votes
1
answer
1k
views
Bootstrap form validation, require 1 of 3 text fields?
I'm using bootstrap 4 with the built in form validation. I can require one text filed like this
<div class="col-6 mb-3">
<label for="field">field</label>
<input type="text" ...
0
votes
2
answers
635
views
Bootstrap required validation to select one of the dropdown
I have this fiddle (from my project) https://jsfiddle.net/autofiddle/cap6g9wq/20/
I want to have customer name and the first dropdown required as it is.
Depending on what you choose in the first ...
0
votes
0
answers
69
views
Referencing the is-invalid and :invalid pseudoclass of bootstrap form validation with jQuery to to run code only when form is valid
Here is the code
$("#enterform").on("click", function (event) {
if ((($(".was-validated").children().hasClass(":invalid"))===false)&&(($(".was-validated").children().hasClass(".is-...
2
votes
1
answer
708
views
Using Jquery bootstrap validation to validate individual field in an array of fields along with sibling field
I have a form with form-groups each containing similar text fields and checkboxes which are sent as arrays when submitting the form as below:
<form method="POST" action="http://...
0
votes
1
answer
143
views
Inserting the same HTML Form element into multiple modals when shown, but validation doesn't work
I am developing a one page website using HTML5, CSS3, Bootstrap 4 and jQuery. I also use jQuery Form Validator for form validation.
The problem is that I have several Bootstrap modals having ...
0
votes
1
answer
2k
views
How do I reset the BootstrapValidator without deleting data from the form? [duplicate]
I am using BootstrapValidator in a project. After the validator has been initialized $(formSelector).bootstrapValidator(/*plugin options*/), other javascript may enable or disable some input fields. I ...