All Questions
Tagged with javascript forms
28,976
questions
0
votes
0
answers
16
views
Add custom validation before form submission in ClickFunnels
On ClickFunnels, I am trying to add some custom validation for an input field (email) as the built-in ones are not enough for my use case.
The validation use an external api call to validate the email ...
0
votes
3
answers
53
views
Formatting a form input field
How can you format a form input field such that it only accepts numbers from users, takes a maximum of 16 digits, and adds a space after each four digits? I am trying to create a debit card such that ...
0
votes
2
answers
29
views
How to create an input field with a predefined format where users can only type in specific parts of the field
I have a basic HTML input field (for phone numbers), that currently lets the user type and submit whatever they want inside:
923-98-Ilovekittens :3
However, I want the field to look like this:
+1 (...
-1
votes
0
answers
30
views
I need solution with javascript for a form when I turn page [closed]
I want a problem with a form on mobile, when I turn the page, the scroll is on the bottom of the page. Does it have a solution with javascript?
Thanks in advance
Sorry for my bad english
I didn't try ...
0
votes
0
answers
54
views
Refilling a form with saved user selection
In my application I have a form that initially has default values. The user can choose other selections in the form. The user can also save the selections into localStorage by clicking the Save ...
0
votes
0
answers
17
views
Understanding the work together and howto for <button type="submit" between HTML js and php [duplicate]
I searched around for the last few days, but couldn't get the entry point of understanding.
How the work together between HTML, Js and PHP for the submit button is.
Especially for my case, I want a ...
0
votes
2
answers
55
views
How to send dependent html form fields?
<form>
<input name="checkbox" type="checkbox"></input>
<input name="value" type="text"></input>
<input name="checkbox" type="checkbox"></input>
...
-2
votes
1
answer
23
views
I want it generate error when users enter more than 15 password maximum [closed]
I am building a password generator, I set it to 15 max but I alter realized that if users input a figure above 15, it will accept and generate it, which is not suppose to be.
I want to let it have a ...
0
votes
0
answers
32
views
HTML form not populating correctly, What am I doing wrong?
I have a javascript application where I need to save the user selections in a HTML form that I need to retrun to the form when the user returns to the page with the form. I have implemented solutions ...
-4
votes
0
answers
24
views
How do I get this js validation running? [closed]
console.log("JS works properly");
const vname = document.getElementById("vname");
const nname = document.getElementById("nname");
const idnum = document.getElementById(&...
-1
votes
0
answers
14
views
I am trying to print the data of my form in html and check if the user password is same ans confirm password [closed]
I tried this and my console just gave me two empty lines for the console.log(password.value) and console.log(confirm_pass.value)
Also I get an error about 'incorrect use of <label for=form_Element&...
0
votes
2
answers
31
views
preventing HTML page reload on from submission
I am working on an astronomical application that determines the location of the sun and the resulting shadow lengths and shadow azimuths at different times of the day. I want to eventually deploy this ...
0
votes
1
answer
55
views
Form validation through two app script libraries
The problem is after clicking on the button. I'm getting
Uncaught ReferenceError: check is not defined at HTMLInputElement.onclick
This is my scenario:
I have two standalone libraries. The first ...
-3
votes
0
answers
28
views
Using math.random form js and input it in php [duplicate]
I am trying to get data from input generated by math.random to php by
Javascript
id = Math.floor(Math.random() * 100000);
document.getElementById('uid').value = id; // pastes it in input values
<...
0
votes
1
answer
33
views
Saving data from an HTML form
I am trying to save data from an HTML form. I found this solution here on stackoverflow
I want to use the CacheData function (shown below) but when I run my code, I keep getting an error that ...