Hi I've created a simple submission form but when I enter the required argument it doesn't force the user to fill in the mission fields instead it just reloads the page when submit it press. Is this because the backend hasn't yet been designed? Thanks you in advanced! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi I've created a simple submission form but when I enter the required argument it doesn't force the user to fill in the mission fields instead it just reloads the page when submit it press. Is this because the backend hasn't yet been designed? Thanks you in advanced!

Required argument in forms not working

19th Nov 2016, 10:30 AM
Pierre Le Roux
Pierre Le Roux - avatar
3 Answers
+ 2
That's the one reason. You can do form validation in javascript. And to be sure you can add "required" tag to input. www.w3schools.com/TAgs/att_input_required.asp
19th Nov 2016, 11:21 AM
Jakub Stasiak
Jakub Stasiak - avatar
0
So then I should learn javascript and then try it again?
19th Nov 2016, 11:24 AM
Pierre Le Roux
Pierre Le Roux - avatar
0
I would strongly recommend it :)
19th Nov 2016, 11:27 AM
Jakub Stasiak
Jakub Stasiak - avatar