Category "forms"

Why this form is submitted also if this script forbids the submission?

I am absolutely new in JavaScript development and I have the following problem. I have a form containing two input tags where the user can insert two dates (som

event.preventDefault(); only works some of the time with submit form

I am using the Mailchimp API to submit a form. The goal is to prevent the default callback provided by Mailchimp. The majority of the time event.preventDefault(

Javascript firing function twice and 1 of 4 functions not working

I'm creating a calculator in JavaScript. It is working, except for the add() function (sub, mult, and div work fine) and when I press "=" it sends the answer t

How can setTimeout save and load data back to form inputs if browser crashes, and I visit that same page again?

How can setTimeout save and load data for select form inputs? I tried to get it working with event listeners. I checked the capture and bubble which I am still

JavaScript code displaying in browser when form submitted, not the result of the script

I'm writing a basic calculator in JavaScript, and when I hit "=" on the html form it is returning the entire calculator.js, not the result. I'm not sure why th

JavaScript to update End Date when Start Date is changed

For the site I am developing, I use a form to update the different fields of a model. Some of those fields need to be updated according to the values of others.

Django Form. View form with models of logged user

I'm doing simple to do app in django. I want user to have possibility to add boards and task (task is specified for board). When user is adding task (form creat

How to avoid username/password autofill within a form in Chrome?

I have an admin form with username and password fields that is being filled in by Chrome as it has a username and password remembered. I would like to prevent t

Can I build my form without using Django form?

I'm using Django and I just did a big form Using HTML5 and bootstrap. Can I still send the form via the post method to django if I'm not using it to generate th

Double listbox with CollectionType/ChoiceType for user roles

With Symfony 4, I don't have this problem : a simple form to choose or edit the role of an user with a listbox. Since I start a new project with Symfony 5 (with

Form repeater send wrong data with last element in Laravel

My form sends multiple forms of (name and image). However, the last element sends a name only with the wrong 'name.' Do I need to simultaneously make multiple i

Can't save data to database from input form - Laravel 8

it's me again. I have a problem saving data to the database from the input form that I made. Here is my web route: Route::get('/admin/data-karyawan', [BasicKary

Open a new window using data from input form

In a input form in a HTML file, the user is supposed to put an URL (let's call it thislink). Then I want, when the user clicks on the submit button, to open a n

Two legends in a fieldset

You can't have two legends for a given fieldset, but is there a way to get a legend effect without using the <legend> tag? <!-- left legend --> <

In HTML, with JavaScript, create new radio button and its text?

I want that when the "Yes" radio button of a form (form1) is checked, a new form (form2) appears, with two radio buttons and their text "Yes" and "No". With an

Angular FormArray display validation errors

I have Angular form that is built with help of FormBuilder. Form contains a FormArray which has as many fields as user wants. I've set validator for fields this

How to create html5 custom validation?

I am using html 5 form validation for validate my form before submit, if is valid, submit, but I need validate my User Register form, so it need validate if Pas

Set and retain column widths of Split Form datasheet columns in MS-Access

I'm using a Split Form in Access 2012. Basic datasheet view on top with individual record and form header in bottom pane. I'm trying to figure if there's a way

Moving a value into an html form field

I am very new to JavaScript and would like to know how to go about the following. I have a form that I am using for entry to a fishing contest. It contains fiel

FastAPI UploadFile is slow compared to Flask

If I create an endpoint like below: @app.post("/report/upload") def create_upload_files(files: UploadFile = File(...)): try: with open(files